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

Commit 7f1bdbe0 authored by Ravinder Konka's avatar Ravinder Konka
Browse files

net/embms-kernel : EMBMS Tunneling Module



This module is used to tunnel multicast
packets received on an interface to WLAN
clients which have registered for these
packet streams. Mainly used to tunnel
EMBMS packets received on TMGI streams.

Change-Id: I996077342261ec2cb688e98319c6881d2dd7cce2
Acked-by: default avatarMohit Pahuja <mpahuja@qti.qualcomm.com>
Signed-off-by: default avatarRavinder konka <rkonka@codeaurora.org>
parent 308bbda6
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