7 #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__
9 #include <linux/kernel.h>
10 #include <linux/types.h>
11 #include <linux/slab.h>
12 #include <linux/errno.h>
17 #define container_obj(layr) ((struct cfsrvl *) layr)
19 static int cfvidl_receive(
struct cflayer *layr,
struct cfpkt *pkt);
20 static int cfvidl_transmit(
struct cflayer *layr,
struct cfpkt *pkt);
30 vid->
layer.receive = cfvidl_receive;
31 vid->
layer.transmit = cfvidl_transmit;
36 static int cfvidl_receive(
struct cflayer *layr,
struct cfpkt *pkt)
40 pr_err(
"Packet is erroneous!\n");
44 return layr->
up->receive(layr->
up, pkt);
47 static int cfvidl_transmit(
struct cflayer *layr,
struct cfpkt *pkt)
64 return layr->
dn->transmit(layr->
dn, pkt);