]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: add check to prevent use of remote ip attributes with NDA_NH_ID
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 29 May 2020 05:12:35 +0000 (22:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 04:47:08 +0000 (21:47 -0700)
commit8efa7b4a4cf58734c85d70aa6eceee3901b2807a
tree139eca7b006e59b16e7c7a6367ff946c4c059ea1
parent8a297c0923548e81382c20cfc218c274a1c1131e
vxlan: add check to prevent use of remote ip attributes with NDA_NH_ID

NDA_NH_ID represents a remote ip or a group of remote ips.
It allows use of nexthop groups in lieu of a remote ip or a
list of remote ips supported by the fdb api.

Current code ignores the other remote ip attrs when NDA_NH_ID is
specified. In the spirit of strict checking, This commit adds a
check to explicitly return an error on incorrect usage.

Fixes: feeface2e67a ("vxlan: ecmp support for mac fdb entries")
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c