[dpdk-dev] net/i40e: base code update

Message ID 1488508533-63776-1-git-send-email-jingjing.wu@intel.com (mailing list archive)
State Changes Requested, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Jingjing Wu March 3, 2017, 2:35 a.m. UTC
  On X722, we can control whether or not the hardware performs ATR
eviction. Define the correct bit so we can twiddle it.

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
---
 drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Bruce Richardson March 3, 2017, 9:37 a.m. UTC | #1
I think the title needs to be a bit more specific on this one...

On Fri, Mar 03, 2017 at 10:35:33AM +0800, Jingjing Wu wrote:
> On X722, we can control whether or not the hardware performs ATR
> eviction. Define the correct bit so we can twiddle it.
> 
> Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
> ---
>  drivers/net/i40e/base/i40e_adminq_cmd.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h
> index 67cef7c..ff13fbf 100644
> --- a/drivers/net/i40e/base/i40e_adminq_cmd.h
> +++ b/drivers/net/i40e/base/i40e_adminq_cmd.h
> @@ -770,6 +770,7 @@ struct i40e_aqc_set_switch_config {
>  /* flags used for both fields below */
>  #define I40E_AQ_SET_SWITCH_CFG_PROMISC		0x0001
>  #define I40E_AQ_SET_SWITCH_CFG_L2_FILTER	0x0002
> +#define I40E_AQ_SET_SWITCH_CFG_HW_ATR_EVICT	0x0004
>  	__le16	valid_flags;
>  	u8	reserved[12];
>  };
> -- 
> 2.4.11
>
  

Patch

diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h
index 67cef7c..ff13fbf 100644
--- a/drivers/net/i40e/base/i40e_adminq_cmd.h
+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h
@@ -770,6 +770,7 @@  struct i40e_aqc_set_switch_config {
 /* flags used for both fields below */
 #define I40E_AQ_SET_SWITCH_CFG_PROMISC		0x0001
 #define I40E_AQ_SET_SWITCH_CFG_L2_FILTER	0x0002
+#define I40E_AQ_SET_SWITCH_CFG_HW_ATR_EVICT	0x0004
 	__le16	valid_flags;
 	u8	reserved[12];
 };