Revert "iavf: Add waiting for response from PF in set mac"
Subsystems (3)
PATCH 1/1 Revert "iavf: Add waiting for response from PF in set mac"
This change caused a regressions with MAC address changing. It is not possible to simple fix issues caused by this patch. It is better revert/rework it.
[root@host ~]# ethtool -i enp65s0f0
driver: ice
version: 5.19.4-200.fc36.x86_64
firmware-version: 3.20 0x8000d83e 1.3146.0
- Change MAC for VF
[root@host ~]# echo 1 > /sys/class/net/enp65s0f0/device/sriov_numvfs [root@host ~]# ip link set enp65s0f0v0 up
[root@host ~]# ip link set enp65s0f0v0 addr 00:11:22:33:44:55 RTNETLINK answers: Permission denied
- Add VF to bond
[root@host ~]# echo 2 > /sys/class/net/enp65s0f0/device/sriov_numvfs [root@host ~]# ip link add bond0 type bond
[root@host ~]# ip link set enp65s0f0v0 down
[root@host ~]# ip link set enp65s0f0v1 down
[root@host ~]# ip link set enp65s0f0v0 master bond0 RTNETLINK answers: Permission denied
dmesg:
bond0: (slave enp65s0f0v1): Error -13 calling set_mac_address
This reverts commit 35a2443d0910fdd6ce29d4f724447ad7029e8f23.
--- drivers/net/ethernet/intel/iavf/iavf.h | 7 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 127 +++--------------- .../net/ethernet/intel/iavf/iavf_virtchnl.c | 61 +-------- 3 files changed, 21 insertions(+), 174 deletions(-)
drivers/net/ethernet/intel/iavf/iavf.h +1 -6
@@ -146,8 +146,7 @@ struct iavf_mac_filter { u8 remove:1; /* filter needs to be removed */ u8 add:1; /* filter needs to be added */ u8 is_primary:1; /* filter is a default VF MAC */ - u8 add_handled:1; /* received response for filter add */ - u8 padding:3; + u8 padding:4; }; };
@@ -253,7 +252,6 @@ struct iavf_adapter {struct work_struct adminq_task;struct delayed_work client_task;wait_queue_head_t down_waitqueue; -wait_queue_head_t vc_waitqueue;struct iavf_q_vector *q_vectors;struct list_head vlan_filter_list;struct list_head mac_filter_list;
@@ -298,7 +296,6 @@ struct iavf_adapter {#define IAVF_FLAG_QUEUES_DISABLED BIT(17)#define IAVF_FLAG_SETUP_NETDEV_FEATURES BIT(18)#define IAVF_FLAG_REINIT_MSIX_NEEDED BIT(20) -#define IAVF_FLAG_INITIAL_MAC_SET BIT(23)/* duplicates for common code */ #define IAVF_FLAG_DCB_ENABLED 0/* flags for admin queue service task */
@@ -576,8 +573,6 @@ void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid);void iavf_disable_vlan_stripping_v2 (struct iavf_adapter *adapter,u16 tpid);void iavf_enable_vlan_insertion_v2 (struct iavf_adapter *adapter,u16 tpid);void iavf_disable_vlan_insertion_v2 (struct iavf_adapter *adapter,u16 tpid); -int iavf_replace_primary_mac (struct iavf_adapter *adapter, -const u8 *new_mac); void iavf_set_vlan_offload_features(struct iavf_adapter *adapter, netdev_features_t prev_features,
drivers/net/ethernet/intel/iavf/iavf_main.c +18 -109
174 lines not on this page · raw message
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +2 -59
106 lines not on this page · raw message
Signature · 6 lines
2.37.2 _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
PATCH 1/1 Revert "iavf: Add waiting for response from PF in set mac"
This change caused a regressions with MAC address changing. It is not possible to simple fix issues caused by this patch. It is better revert/rework it.
[root@host ~]# ethtool -i enp65s0f0
driver: ice
version: 5.19.4-200.fc36.x86_64
firmware-version: 3.20 0x8000d83e 1.3146.0
- Change MAC for VF
[root@host ~]# echo 1 > /sys/class/net/enp65s0f0/device/sriov_numvfs [root@host ~]# ip link set enp65s0f0v0 up
[root@host ~]# ip link set enp65s0f0v0 addr 00:11:22:33:44:55 RTNETLINK answers: Permission denied
- Add VF to bond
[root@host ~]# echo 2 > /sys/class/net/enp65s0f0/device/sriov_numvfs [root@host ~]# ip link add bond0 type bond
[root@host ~]# ip link set enp65s0f0v0 down
[root@host ~]# ip link set enp65s0f0v1 down
[root@host ~]# ip link set enp65s0f0v0 master bond0 RTNETLINK answers: Permission denied
dmesg:
bond0: (slave enp65s0f0v1): Error -13 calling set_mac_address
This reverts commit 35a2443d0910fdd6ce29d4f724447ad7029e8f23.
--- drivers/net/ethernet/intel/iavf/iavf.h | 7 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 127 +++--------------- .../net/ethernet/intel/iavf/iavf_virtchnl.c | 61 +-------- 3 files changed, 21 insertions(+), 174 deletions(-)
drivers/net/ethernet/intel/iavf/iavf.h +1 -6
@@ -146,8 +146,7 @@ struct iavf_mac_filter { u8 remove:1; /* filter needs to be removed */ u8 add:1; /* filter needs to be added */ u8 is_primary:1; /* filter is a default VF MAC */ - u8 add_handled:1; /* received response for filter add */ - u8 padding:3; + u8 padding:4; }; };
@@ -253,7 +252,6 @@ struct iavf_adapter {struct work_struct adminq_task;struct delayed_work client_task;wait_queue_head_t down_waitqueue; -wait_queue_head_t vc_waitqueue;struct iavf_q_vector *q_vectors;struct list_head vlan_filter_list;struct list_head mac_filter_list;
@@ -298,7 +296,6 @@ struct iavf_adapter {#define IAVF_FLAG_QUEUES_DISABLED BIT(17)#define IAVF_FLAG_SETUP_NETDEV_FEATURES BIT(18)#define IAVF_FLAG_REINIT_MSIX_NEEDED BIT(20) -#define IAVF_FLAG_INITIAL_MAC_SET BIT(23)/* duplicates for common code */ #define IAVF_FLAG_DCB_ENABLED 0/* flags for admin queue service task */
@@ -576,8 +573,6 @@ void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid);void iavf_disable_vlan_stripping_v2 (struct iavf_adapter *adapter,u16 tpid);void iavf_enable_vlan_insertion_v2 (struct iavf_adapter *adapter,u16 tpid);void iavf_disable_vlan_insertion_v2 (struct iavf_adapter *adapter,u16 tpid); -int iavf_replace_primary_mac (struct iavf_adapter *adapter, -const u8 *new_mac); void iavf_set_vlan_offload_features(struct iavf_adapter *adapter, netdev_features_t prev_features,
drivers/net/ethernet/intel/iavf/iavf_main.c +18 -109
174 lines not on this page · raw message
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +2 -59
106 lines not on this page · raw message
Signature · 6 lines
2.37.2 _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Tony Nguyen
maintainerQuoted 25 lines · Petr Oros
This change caused a regressions with MAC address changing. It is not possible to simple fix issues caused by this patch. It is better revert/rework it.
[root@host ~]# ethtool -i enp65s0f0
driver: ice
version: 5.19.4-200.fc36.x86_64
firmware-version: 3.200x8000d83e1.3146.0- Change MAC for VF
[root@host ~]# echo 1 >/sys/class/net/enp65s0f0/device/sriov_numvfs[root@host ~]# ip link set enp65s0f0v0 up
[root@host ~]# ip link set enp65s0f0v0 addr 00:11:22:33:44:55 RTNETLINK answers: Permission denied- Add VF to bond
[root@host ~]# echo 2 >/sys/class/net/enp65s0f0/device/sriov_numvfs[root@host ~]# ip link add bond0 type bond
[root@host ~]# ip link set enp65s0f0v0 down
[root@host ~]# ip link set enp65s0f0v1 down
[root@host ~]# ip link set enp65s0f0v0 master bond0 RTNETLINK answers: Permission denied
dmesg:
bond0: (slave enp65s0f0v1): Error -13 callingset_mac_address
Quoted 3 lines
This reverts commit
35a2443d0910fdd6ce29d4f724447ad7029e8f23.Signed-off-by Petr Oros <[email protected]>
Hi Petr,
Could you see if this patch [1] resolves your issues?
Thanks,
Tony
[1] https://lore.kernel.org/intel-wired-lan/[email protected]/
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan