[PATCH v4] net/ice: add devargs for disabling default mac

Zhang, Qi Z qi.z.zhang at intel.com
Mon Feb 13 02:48:48 CET 2023



> -----Original Message-----
> From: Zhang, Ke1X <ke1x.zhang at intel.com>
> Sent: Friday, February 3, 2023 10:02 AM
> To: Zhang, Qi Z <qi.z.zhang at intel.com>; Zhang, Yuying
> <yuying.zhang at intel.com>; Liu, Yong <yong.liu at intel.com>; dev at dpdk.org
> Cc: Zhang, Ke1X <ke1x.zhang at intel.com>
> Subject: [PATCH v4] net/ice: add devargs for disabling default mac
> 
> From: "ke1x.zhang" <ke1x.zhang at intel.com>
> 
> There is a requirement that if a flow rule is created, received packet is
> permitted to pass if rule matching, or else drop.
> But in default, a mac filter will be created and the default mac will be added
> into lookup table during driver initialization, it makes drop action impossilbe.
> 
> Add the feature that support to disable default mac which will be used by ice
> driver when setting dpdk_devargs config field.
> 
> Default mac is not disabled in default, user can choose to disable the default
> mac by setting ``devargs`` parameter ``default-mac-disable``,

Reworded to

Disable the default MAC make the device drop all packets by default, only packets hit
on filter rules will pass.

Default Mac can be disabled by setting ``devargs`` parameter ``default-mac-disable``,
for example::

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi



More information about the dev mailing list