lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c2a8dfad-1be8-1bef-4c31-f2c45ba99e6b@nvidia.com>
Date:   Sun, 20 Feb 2022 06:29:41 -0800
From:   Roopa Prabhu <roopa@...dia.com>
To:     <davem@...emloft.net>, <kuba@...nel.org>
CC:     <netdev@...r.kernel.org>, <stephen@...workplumber.org>,
        <nikolay@...ulusnetworks.com>, <idosch@...dia.com>,
        <dsahern@...il.com>
Subject: Re: [PATCH net-next 06/12] rtnetlink: add new rtm tunnel api for
 tunnel id filtering


On 2/20/22 6:03 AM, Roopa Prabhu wrote:
> This patch adds new rtm tunnel msg and api for tunnel id
> filtering in dst_metadata devices. First dst_metadata
> device to use the api is vxlan driver with AF_BRIDGE
> family.
>
> This and later changes add ability in vxlan driver to do
> tunnel id filtering (or vni filtering) on dst_metadata
> devices. This is similar to vlan api in the vlan filtering bridge.
>
> Signed-off-by: Roopa Prabhu <roopa@...dia.com>
> ---
>   include/uapi/linux/if_link.h   | 26 ++++++++++++++++++++++++++
>   include/uapi/linux/rtnetlink.h |  9 +++++++++
>   2 files changed, 35 insertions(+)
>
> diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
> index 6218f93f5c1a..eb046a82188d 100644
> --- a/include/uapi/linux/if_link.h
> +++ b/include/uapi/linux/if_link.h
> @@ -712,6 +712,31 @@ enum ipvlan_mode {
>   #define IPVLAN_F_PRIVATE	0x01
>   #define IPVLAN_F_VEPA		0x02
>   
> +/* Tunnel RTM header */
> +struct tunnel_msg {
> +	__u8 family;
> +	__u8 reserved1;
> +	__u16 reserved2;
> +	__u32 ifindex;
> +};
> +
> +enum {
> +	VXLAN_VNIFILTER_ENTRY_UNSPEC,
> +	VXLAN_VNIFILTER_ENTRY_START,
> +	VXLAN_VNIFILTER_ENTRY_END,
> +	VXLAN_VNIFILTER_ENTRY_GROUP,
> +	VXLAN_VNIFILTER_ENTRY_GROUP6,
> +	__VXLAN_VNIFILTER_ENTRY_MAX
> +};
> +#define VXLAN_VNIFILTER_ENTRY_MAX	(__VXLAN_VNIFILTER_ENTRY_MAX - 1)
> +
> +enum {
> +	VXLAN_VNIFILTER_UNSPEC,
> +	VXLAN_VNIFILTER_ENTRY,
> +	__VXLAN_VNIFILTER_MAX
> +};
> +#define VXLAN_VNIFILTER_MAX	(__VXLAN_VNIFILTER_MAX - 1)
> +
>   /* VXLAN section */

just noticed, this comment should move up. will include in v2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ