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

Commit 33c2abd5 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

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

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