Loading net/core/dev.c +8 −0 Original line number Diff line number Diff line Loading @@ -4327,6 +4327,9 @@ static inline int nf_ingress(struct sk_buff *skb, struct packet_type **pt_prev, return 0; } 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 @@ -4335,6 +4338,7 @@ static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) bool deliver_exact = false; int ret = NET_RX_DROP; __be16 type; int (*embms_recv)(struct sk_buff *skb); net_timestamp_check(!netdev_tstamp_prequeue, skb); Loading Loading @@ -4391,6 +4395,10 @@ static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) } #endif skb_reset_tc(skb); embms_recv = rcu_dereference(embms_tm_multicast_recv); if (embms_recv) embms_recv(skb); skip_classify: if (pfmemalloc && !skb_pfmemalloc_protocol(skb)) goto drop; 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 @@ -4327,6 +4327,9 @@ static inline int nf_ingress(struct sk_buff *skb, struct packet_type **pt_prev, return 0; } 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 @@ -4335,6 +4338,7 @@ static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) bool deliver_exact = false; int ret = NET_RX_DROP; __be16 type; int (*embms_recv)(struct sk_buff *skb); net_timestamp_check(!netdev_tstamp_prequeue, skb); Loading Loading @@ -4391,6 +4395,10 @@ static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc) } #endif skb_reset_tc(skb); embms_recv = rcu_dereference(embms_tm_multicast_recv); if (embms_recv) embms_recv(skb); skip_classify: if (pfmemalloc && !skb_pfmemalloc_protocol(skb)) goto drop; 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