Thread (5 messages) flat view 5 messages, 4 authors, 2023-10-19

Re: [PATCH net] i40e: Fix I40E_FLAG_VF_VLAN_PRUNING value

From: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Date: 2023-10-18 12:31:26
Also in: intel-wired-lan, lkml

On 10/18/23 13:26, Ivan Vecera wrote:
quoted hunk ↗ jump to hunk
Commit c87c938f62d8f1 ("i40e: Add VF VLAN pruning") added new
PF flag I40E_FLAG_VF_VLAN_PRUNING but its value collides with
existing I40E_FLAG_TOTAL_PORT_SHUTDOWN_ENABLED flag.

Move the affected flag at the end of the flags and fix its value.

Cc: Mateusz Palczewski <redacted>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
---
  drivers/net/ethernet/intel/i40e/i40e.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index 6e310a53946782..55bb0b5310d5b4 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -580,7 +580,6 @@ struct i40e_pf {
  #define I40E_FLAG_DISABLE_FW_LLDP		BIT(24)
  #define I40E_FLAG_RS_FEC			BIT(25)
  #define I40E_FLAG_BASE_R_FEC			BIT(26)
-#define I40E_FLAG_VF_VLAN_PRUNING		BIT(27)
  /* TOTAL_PORT_SHUTDOWN
   * Allows to physically disable the link on the NIC's port.
   * If enabled, (after link down request from the OS)
@@ -603,6 +602,7 @@ struct i40e_pf {
such mistake happened only because list of flags is dispersed so much :/
   *   in abilities field of i40e_aq_set_phy_config structure
   */
  #define I40E_FLAG_TOTAL_PORT_SHUTDOWN_ENABLED	BIT(27)
+#define I40E_FLAG_VF_VLAN_PRUNING		BIT(28)
  
  	struct i40e_client_instance *cinst;
  	bool stat_offsets_loaded;
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help