diff options
| author | Chirag Shah <chirag@nvidia.com> | 2022-01-25 10:25:38 -0800 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-06-24 07:33:34 -0400 | 
| commit | acc8e68720ecc320b6d008ebb21c921f404762b0 (patch) | |
| tree | 7d66433769cf90ca0365eee21dbce1348d9c5b6a /zebra/kernel_netlink.c | |
| parent | c315b87c4f71c79508eb61e2f6cbd27b8df2ec87 (diff) | |
zebra: netlink rtm tunnel msg parsing
'bridge vni add vni <id> dev <vxlan device>'
generates new RTM_NEWTUNNEL and RTM_DELTUNNEL
to add or remove vni to l3vxlan device.
Register new RTNLGRP_TUNNEL group to receive
new netlink notification.
Callback for the new RTM_xxxTUNNEL.
kernel patches:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
linux.git/commit/?h=v5.18-rc7&id=7b8135f4df98b155b23754b6065c157861e268f1
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
linux.git/commit/?h=v5.18-rc7&id=f9c4bb0b245cee35ef66f75bf409c9573d934cf9
Ticket:#3073812
Testing Done:
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'zebra/kernel_netlink.c')
| -rw-r--r-- | zebra/kernel_netlink.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 7e47822a2c..4bd0ac27f6 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -111,6 +111,9 @@ static const struct message nlmsg_str[] = {{RTM_NEWROUTE, "RTM_NEWROUTE"},  					   {RTM_GETNEXTHOP, "RTM_GETNEXTHOP"},  					   {RTM_NEWNETCONF, "RTM_NEWNETCONF"},  					   {RTM_DELNETCONF, "RTM_DELNETCONF"}, +					   {RTM_NEWTUNNEL, "RTM_NEWTUNNEL"}, +					   {RTM_DELTUNNEL, "RTM_DELTUNNEL"}, +					   {RTM_GETTUNNEL, "RTM_GETTUNNEL"},  					   {0}};  static const struct message rtproto_str[] = { @@ -393,8 +396,10 @@ static int netlink_information_fetch(struct nlmsghdr *h, ns_id_t ns_id,  	case RTM_DELADDR:  	case RTM_NEWNETCONF:  	case RTM_DELNETCONF: +	case RTM_NEWTUNNEL: +	case RTM_DELTUNNEL: +	case RTM_GETTUNNEL:  		return 0; -  	default:  		/*  		 * If we have received this message then  | 
