Skip to content

Commit 78ec710

Browse files
Fabian Frederickdavem330
authored andcommitted
vxlan: fix vxlan_find_sock() documentation for l3mdev
Since commit aab8cc3 ("vxlan: add support for underlay in non-default VRF") vxlan_find_sock() also checks if socket is assigned to the right level 3 master device when lower device is not in the default VRF. Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2eabcb8 commit 78ec710

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/net/vxlan.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ static inline struct vxlan_rdst *first_remote_rtnl(struct vxlan_fdb *fdb)
190190
return list_first_entry(&fdb->remotes, struct vxlan_rdst, list);
191191
}
192192

193-
/* Find VXLAN socket based on network namespace, address family and UDP port
194-
* and enabled unshareable flags.
193+
/* Find VXLAN socket based on network namespace, address family, UDP port,
194+
* enabled unshareable flags and socket device binding (see l3mdev with
195+
* non-default VRF).
195196
*/
196197
static struct vxlan_sock *vxlan_find_sock(struct net *net, sa_family_t family,
197198
__be16 port, u32 flags, int ifindex)

0 commit comments

Comments
 (0)