[dpdk-dev,5/8] drivers/net/ixgbe: Fix vlan filter missing brackets

Message ID 1456426121-21423-6-git-send-email-aconole@redhat.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Aaron Conole Feb. 25, 2016, 6:48 p.m. UTC
  The ixgbe vlan filter code has an if check with an incorrect whitespace.

Signed-off-by: Aaron Conole <aconole@redhat.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Panu Matilainen March 10, 2016, 1:28 p.m. UTC | #1
On 02/25/2016 08:48 PM, Aaron Conole wrote:
> The ixgbe vlan filter code has an if check with an incorrect whitespace.
>
> Signed-off-by: Aaron Conole <aconole@redhat.com>
> ---
>   drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
> index 3e6fe86..2e1c3ad 100644
> --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> @@ -4258,10 +4258,11 @@ ixgbe_set_pool_vlan_filter(struct rte_eth_dev *dev, uint16_t vlan,
>   	if (ixgbe_vmdq_mode_check(hw) < 0)
>   		return -ENOTSUP;
>   	for (pool_idx = 0; pool_idx < ETH_64_POOLS; pool_idx++) {
> -		if (pool_mask & ((uint64_t)(1ULL << pool_idx)))
> +		if (pool_mask & ((uint64_t)(1ULL << pool_idx))) {
>   			ret = hw->mac.ops.set_vfta(hw,vlan,pool_idx,vlan_on);
>   			if (ret < 0)
>   				return ret;
> +		}
>   	}
>
>   	return ret;
>

Acked-by: Panu Matilainen <pmatilai@redhat.com>

Seems really obvious but cc'd the ixgbe maintainers too.

	- Panu -
  
Zhang, Helin March 18, 2016, 12:45 a.m. UTC | #2
> -----Original Message-----
> From: Aaron Conole [mailto:aconole@redhat.com]
> Sent: Friday, February 26, 2016 2:49 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Zhang, Helin
> <helin.zhang@intel.com>; Ananyev, Konstantin
> <konstantin.ananyev@intel.com>; Richardson, Bruce
> <bruce.richardson@intel.com>
> Subject: [PATCH 5/8] drivers/net/ixgbe: Fix vlan filter missing brackets
> 
> The ixgbe vlan filter code has an if check with an incorrect whitespace.
> 
> Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>

> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c
> b/drivers/net/ixgbe/ixgbe_ethdev.c
> index 3e6fe86..2e1c3ad 100644
> --- a/drivers/net/ixgbe/ixgbe_ethdev.c
> +++ b/drivers/net/ixgbe/ixgbe_ethdev.c
> @@ -4258,10 +4258,11 @@ ixgbe_set_pool_vlan_filter(struct rte_eth_dev *dev,
> uint16_t vlan,
>  	if (ixgbe_vmdq_mode_check(hw) < 0)
>  		return -ENOTSUP;
>  	for (pool_idx = 0; pool_idx < ETH_64_POOLS; pool_idx++) {
> -		if (pool_mask & ((uint64_t)(1ULL << pool_idx)))
> +		if (pool_mask & ((uint64_t)(1ULL << pool_idx))) {
>  			ret = hw->mac.ops.set_vfta(hw,vlan,pool_idx,vlan_on);
>  			if (ret < 0)
>  				return ret;
> +		}
>  	}
> 
>  	return ret;
> --
> 2.5.0
  

Patch

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 3e6fe86..2e1c3ad 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -4258,10 +4258,11 @@  ixgbe_set_pool_vlan_filter(struct rte_eth_dev *dev, uint16_t vlan,
 	if (ixgbe_vmdq_mode_check(hw) < 0)
 		return -ENOTSUP;
 	for (pool_idx = 0; pool_idx < ETH_64_POOLS; pool_idx++) {
-		if (pool_mask & ((uint64_t)(1ULL << pool_idx)))
+		if (pool_mask & ((uint64_t)(1ULL << pool_idx))) {
 			ret = hw->mac.ops.set_vfta(hw,vlan,pool_idx,vlan_on);
 			if (ret < 0)
 				return ret;
+		}
 	}
 
 	return ret;