Commit 04b5539f authored by bitcoffee's avatar bitcoffee
Browse files

xdp: enable config CONFIG_XDP_SOCKETS and CONFIG_XDP_SOCKETS_DIAG

euler inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8N9IB


CVE: NA

----------------------------

CONFIG_XDP_SOCKETS option is used to open AF_XDP. AF_XDP is a
family of address protocols optimized for high-performance packet
processing, which can redirect data frames to memory buffers in user
space applications. Through XDP technology, advantages such as zero
copy, high performance, and flexibility can be achieved.

CONFIG_XDP_SOCKETS_DIAG is used for AF_XDP performs dfx for
better positioning of XDP/AF_XDP issues.

Signed-off-by: default avatarbitcoffee <liuxin350@huawei.com>
parent f31cd96b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1168,7 +1168,8 @@ CONFIG_NET_KEY=m
CONFIG_NET_KEY_MIGRATE=y
CONFIG_SMC=m
CONFIG_SMC_DIAG=m
# CONFIG_XDP_SOCKETS is not set
CONFIG_XDP_SOCKETS=y
CONFIG_XDP_SOCKETS_DIAG=y
CONFIG_NET_HANDSHAKE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
+1 −1
Original line number Diff line number Diff line
@@ -1189,7 +1189,7 @@ CONFIG_NET_KEY_MIGRATE=y
CONFIG_SMC=m
CONFIG_SMC_DIAG=m
CONFIG_XDP_SOCKETS=y
# CONFIG_XDP_SOCKETS_DIAG is not set
CONFIG_XDP_SOCKETS_DIAG=y
CONFIG_NET_HANDSHAKE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y