[Intel-wired-lan] [PATCH v3 11/15] ice: Implement ice_bridge_getlink and ice_bridge_setlink

Brelinski, TonyX tonyx.brelinski at intel.com
Tue Aug 21 21:41:04 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Thursday, August 9, 2018 6:30 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH v3 11/15] ice: Implement
> ice_bridge_getlink and ice_bridge_setlink
> 
> From: Md Fahad Iqbal Polash <md.fahad.iqbal.polash at intel.com>
> 
> ice_bridge_getlink returns the current bridge mode using
> ndo_dflt_bridge_getlink and the mode parameter available in first_switch-
> >bridge_mode.
> 
> ice_bridge_setlink is invoked when the bridge mode needs to changed. The
> value to be changed to is available as a netlink message which is parsed in this
> function. If the mode has to be changed, switch_flags is set appropriately
> (set ALLOW_LB for VEB mode and clear it for VEPA mode) and
> ice_aq_update_vsi is called. Also change the unicast switch filter rules.
> 
> Signed-off-by: Md Fahad Iqbal Polash <md.fahad.iqbal.polash at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_main.c   | 140 +++++++++++++++++++-
>  drivers/net/ethernet/intel/ice/ice_switch.c |  41 ++++++
>  drivers/net/ethernet/intel/ice/ice_switch.h |   1 +
>  3 files changed, 181 insertions(+), 1 deletion(-)

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com>




More information about the Intel-wired-lan mailing list