Loading net/core/dev.c +8 −0 Original line number Diff line number Diff line Loading @@ -3621,6 +3621,9 @@ static bool skb_pfmemalloc_protocol(struct sk_buff *skb) int (*athrs_fast_nat_recv)(struct sk_buff *skb) __rcu __read_mostly; EXPORT_SYMBOL(athrs_fast_nat_recv); int (*embms_tm_multicast_recv)(struct sk_buff *skb) __rcu __read_mostly; EXPORT_SYMBOL(embms_tm_multicast_recv); static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) { struct packet_type *ptype, *pt_prev; Loading @@ -3631,6 +3634,7 @@ static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) int ret = NET_RX_DROP; __be16 type; int (*fast_recv)(struct sk_buff *skb); int (*embms_recv)(struct sk_buff *skb); net_timestamp_check(!netdev_tstamp_prequeue, skb); Loading Loading @@ -3686,6 +3690,10 @@ skip_taps: } } embms_recv = rcu_dereference(embms_tm_multicast_recv); if (embms_recv) embms_recv(skb); #ifdef CONFIG_NET_CLS_ACT skb = handle_ing(skb, &pt_prev, &ret, orig_dev); if (!skb) Loading net/embms_kernel/Makefile 0 → 100644 +22 −0 Original line number Diff line number Diff line # # Makefile for Embms Kernel module. # KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build obj-m += embms_kernel.o ccflags-y += -D__CHECK_ENDIAN__ CDEFINES += -D__CHECK_ENDIAN__ KBUILD_CPPFLAGS += $(CDEFINES) all: $(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules modules_install: $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install clean: $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean Loading
net/core/dev.c +8 −0 Original line number Diff line number Diff line Loading @@ -3621,6 +3621,9 @@ static bool skb_pfmemalloc_protocol(struct sk_buff *skb) int (*athrs_fast_nat_recv)(struct sk_buff *skb) __rcu __read_mostly; EXPORT_SYMBOL(athrs_fast_nat_recv); int (*embms_tm_multicast_recv)(struct sk_buff *skb) __rcu __read_mostly; EXPORT_SYMBOL(embms_tm_multicast_recv); static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) { struct packet_type *ptype, *pt_prev; Loading @@ -3631,6 +3634,7 @@ static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) int ret = NET_RX_DROP; __be16 type; int (*fast_recv)(struct sk_buff *skb); int (*embms_recv)(struct sk_buff *skb); net_timestamp_check(!netdev_tstamp_prequeue, skb); Loading Loading @@ -3686,6 +3690,10 @@ skip_taps: } } embms_recv = rcu_dereference(embms_tm_multicast_recv); if (embms_recv) embms_recv(skb); #ifdef CONFIG_NET_CLS_ACT skb = handle_ing(skb, &pt_prev, &ret, orig_dev); if (!skb) Loading
net/embms_kernel/Makefile 0 → 100644 +22 −0 Original line number Diff line number Diff line # # Makefile for Embms Kernel module. # KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build obj-m += embms_kernel.o ccflags-y += -D__CHECK_ENDIAN__ CDEFINES += -D__CHECK_ENDIAN__ KBUILD_CPPFLAGS += $(CDEFINES) all: $(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules modules_install: $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(shell pwd) modules_install clean: $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean