Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0191ccd5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net/embms-kernel : EMBMS Tunneling Module"

parents 8cd988e4 7f1bdbe0
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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);

@@ -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)
+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