[Intel-wired-lan] [PATCH v2] ixgbe: Ensure MAC filter was added before setting MACVLAN

Bowers, AndrewX andrewx.bowers at intel.com
Fri Jul 21 22:16:54 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Tony Nguyen
> Sent: Wednesday, July 19, 2017 3:00 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH v2] ixgbe: Ensure MAC filter was added
> before setting MACVLAN
> 
> This patch adds a check to ensure that adding the MAC filter was successful
> before setting the MACVLAN.  If it was unsuccessful, propagate the error.
> 
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> v2:
>   Made changes as suggested by Joe Perches.
>   - Declared retval as an int
>   - Switched logic to return on error
>   - Return 0 on success
> 
>  drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list