diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2020-07-06 18:03:41 +0000 |
---|---|---|
committer | Mohsin Kazmi <sykazmi@cisco.com> | 2020-07-08 08:44:44 +0000 |
commit | 5ac8c6f1f34e96890ccd08dc43b0b896a3b7bf43 (patch) | |
tree | b04d54539e9db605de55558b987cdb11e6b222ba /src/vnet/util/radix.c | |
parent | d4b5fdde42475c90a4b3d5156d03a0a72b145669 (diff) |
tap: fix the tun sndbuf value for kernel 4.20 and later
Type: fix
From kernel 4.20, xdp support has been added in tun_sendmsg.
If sndbuf == INT_MAX, kernel executes xdp data path
for tun driver which assumes packets are ethernet frames.
This patch is avoiding the xdp data path in kernel by setting
the sendbuf value < INT_MAX.
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Change-Id: Ia4aa54b177b96d56a2d513d18d26ca01d5b88929
(cherry picked from commit 4834a66b7b3ef73e486c40ea9d8e36cc2e09c473)
Diffstat (limited to 'src/vnet/util/radix.c')
0 files changed, 0 insertions, 0 deletions