diff options
| author | Alexei Starovoitov <[email protected]> | 2020-06-01 21:57:15 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-06-01 22:00:20 +0000 |
| commit | c48a24f00e7a8b90c817e3f7aa800a3150bb83d0 (patch) | |
| tree | bba2031049e20cce4e5ff3d21f6749c6b9e625b5 /net/ipv4/udp_tunnel.c | |
| parent | bpf: Change kvfree to kfree in generic_map_lookup_batch() (diff) | |
| parent | selftests/bpf: Add test for SO_BINDTODEVICE opt of bpf_setsockopt (diff) | |
| download | kernel-c48a24f00e7a8b90c817e3f7aa800a3150bb83d0.tar.gz kernel-c48a24f00e7a8b90c817e3f7aa800a3150bb83d0.zip | |
Merge branch 'bpf_setsockopt-SO_BINDTODEVICE'
Ferenc Fejes says:
====================
This option makes it possible to programatically bind sockets
to netdevices. With the help of this option sockets
of VRF unaware applications could be distributed between
multiple VRFs with an eBPF program. This lets the applications
benefit from multiple possible routes.
v2:
- splitting up the patch to three parts
- lock_sk parameter for optional locking in sock_bindtoindex - Stanislav Fomichev
- testing the SO_BINDTODEVICE option - Andrii Nakryiko
====================
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'net/ipv4/udp_tunnel.c')
| -rw-r--r-- | net/ipv4/udp_tunnel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp_tunnel.c b/net/ipv4/udp_tunnel.c index 2158e8bddf41..3eecba0874aa 100644 --- a/net/ipv4/udp_tunnel.c +++ b/net/ipv4/udp_tunnel.c @@ -22,7 +22,7 @@ int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg, goto error; if (cfg->bind_ifindex) { - err = sock_bindtoindex(sock->sk, cfg->bind_ifindex); + err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true); if (err < 0) goto error; } |
