Unverified Commit 13bb9145 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1125 add one bpf helper function for redissockmap

Merge Pull Request from: @ci-robot 
 
PR sync from:  Liu Jian <liujian56@huawei.com>
 https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/thread/GBQRSP7JMB5AKFHWXXI74KBSVWJZESEQ/ 
add one bpf helper function for redissockmap

Liu Jian (2):
  net: add bpf_is_local_ipaddr bpf helper function
  net: let sockops can use bpf_get_current_comm()


-- 
2.34.1
 
 
Link:https://gitee.com/openeuler/kernel/pulls/1125

 

Reviewed-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 9fb0c016 e0c4c9af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3139,6 +3139,7 @@ CONFIG_DLCI_MAX=8
CONFIG_USB4_NET=m
# CONFIG_NETDEVSIM is not set
CONFIG_NET_FAILOVER=m
CONFIG_NET_LOCALIP_LST=m
# CONFIG_ISDN is not set

#
+1 −0
Original line number Diff line number Diff line
@@ -3216,6 +3216,7 @@ CONFIG_USB4_NET=m
CONFIG_HYPERV_NET=m
CONFIG_NETDEVSIM=m
CONFIG_NET_FAILOVER=m
CONFIG_NET_LOCALIP_LST=m
CONFIG_ISDN=y
CONFIG_ISDN_CAPI=y
CONFIG_CAPI_TRACE=y
+8 −0
Original line number Diff line number Diff line
@@ -592,4 +592,12 @@ config NET_FAILOVER
	  a VM with direct attached VF by failing over to the paravirtual
	  datapath when the VF is unplugged.

config NET_LOCALIP_LST
	tristate "Collect local ipv4 address"
	depends on INET
	default n
	help
	  Similar to inet_addr_lst, only the IP address is recorded, and
	  net_namespace is not concerned.

endif # NETDEVICES
+1 −0
Original line number Diff line number Diff line
@@ -84,3 +84,4 @@ thunderbolt-net-y += thunderbolt.o
obj-$(CONFIG_USB4_NET) += thunderbolt-net.o
obj-$(CONFIG_NETDEVSIM) += netdevsim/
obj-$(CONFIG_NET_FAILOVER) += net_failover.o
obj-$(CONFIG_NET_LOCALIP_LST) += localip/
+8 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for the linux kernel.
#

# Object file lists.

obj-$(CONFIG_NET_LOCALIP_LST) += localip.o
Loading