summaryrefslogtreecommitdiff
path: root/entry/src/kni_tap_rss.cpp
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2022-06-23 10:15:57 +0800
committerluwenpeng <[email protected]>2022-06-23 11:10:03 +0800
commit3cc6d58dc55026e8877020acb758cd61a3c1d6ff (patch)
tree7228a422559e4e57e471fcf2c6206ad83c5dc62a /entry/src/kni_tap_rss.cpp
parent990d8ae173f62c43b9f70a9a37a9804da13317ab (diff)
TSG-10961 在KNI插件中配置TAP网卡的RPSv5.0.1
Diffstat (limited to 'entry/src/kni_tap_rss.cpp')
-rw-r--r--entry/src/kni_tap_rss.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/entry/src/kni_tap_rss.cpp b/entry/src/kni_tap_rss.cpp
index 3fa0c0c..180164d 100644
--- a/entry/src/kni_tap_rss.cpp
+++ b/entry/src/kni_tap_rss.cpp
@@ -146,12 +146,13 @@ int kni_tap_open_per_thread(const char *tap_dev, int tap_flags, int bpf_prog_fd,
* The TUNSETPERSIST ioctl can be used to make the TUN/TAP interface persistent.
* In this mode, the interface won't be destroyed when the last process closes the associated /dev/net/tun file descriptor.
*/
+ /*
if (ioctl(tap_fd, TUNSETPERSIST, 1) == -1)
{
KNI_LOG_ERROR(logger, TAP_RSS_LOG_TAG "unable to set persist on %s, aborting: %s", tap_dev, strerror(errno));
goto error;
}
-
+ */
#if (SUPPORT_BPF)
if (bpf_prog_fd > 0)
{