aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_ethtool.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c
index 6a97ddbbda76..f7dd0bd03d39 100644
--- a/drivers/net/ethernet/intel/ice/ice_ethtool.c
+++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c
@@ -155,7 +155,7 @@ struct ice_priv_flag {
155 155
156static const struct ice_priv_flag ice_gstrings_priv_flags[] = { 156static const struct ice_priv_flag ice_gstrings_priv_flags[] = {
157 ICE_PRIV_FLAG("link-down-on-close", ICE_FLAG_LINK_DOWN_ON_CLOSE_ENA), 157 ICE_PRIV_FLAG("link-down-on-close", ICE_FLAG_LINK_DOWN_ON_CLOSE_ENA),
158 ICE_PRIV_FLAG("enable-fw-lldp", ICE_FLAG_ENABLE_FW_LLDP), 158 ICE_PRIV_FLAG("fw-lldp-agent", ICE_FLAG_FW_LLDP_AGENT),
159}; 159};
160 160
161#define ICE_PRIV_FLAG_ARRAY_SIZE ARRAY_SIZE(ice_gstrings_priv_flags) 161#define ICE_PRIV_FLAG_ARRAY_SIZE ARRAY_SIZE(ice_gstrings_priv_flags)
@@ -1201,8 +1201,8 @@ static int ice_set_priv_flags(struct net_device *netdev, u32 flags)
1201 1201
1202 bitmap_xor(change_flags, pf->flags, orig_flags, ICE_PF_FLAGS_NBITS); 1202 bitmap_xor(change_flags, pf->flags, orig_flags, ICE_PF_FLAGS_NBITS);
1203 1203
1204 if (test_bit(ICE_FLAG_ENABLE_FW_LLDP, change_flags)) { 1204 if (test_bit(ICE_FLAG_FW_LLDP_AGENT, change_flags)) {
1205 if (!test_bit(ICE_FLAG_ENABLE_FW_LLDP, pf->flags)) { 1205 if (!test_bit(ICE_FLAG_FW_LLDP_AGENT, pf->flags)) {
1206 enum ice_status status; 1206 enum ice_status status;
1207 1207
1208 /* Disable FW LLDP engine */ 1208 /* Disable FW LLDP engine */
@@ -1319,14 +1319,17 @@ ice_get_ethtool_stats(struct net_device *netdev,
1319 struct ice_vsi *vsi = np->vsi; 1319 struct ice_vsi *vsi = np->vsi;
1320 struct ice_pf *pf = vsi->back; 1320 struct ice_pf *pf = vsi->back;
1321 struct ice_ring *ring; 1321 struct ice_ring *ring;
1322 unsigned int j = 0; 1322 unsigned int j;
1323 int i = 0; 1323 int i = 0;
1324 char *p; 1324 char *p;
1325 1325
1326 ice_update_pf_stats(pf);
1327 ice_update_vsi_stats(vsi);
1328
1326 for (j = 0; j < ICE_VSI_STATS_LEN; j++) { 1329 for (j = 0; j < ICE_VSI_STATS_LEN; j++) {
1327 p = (char *)vsi + ice_gstrings_vsi_stats[j].stat_offset; 1330 p = (char *)vsi + ice_gstrings_vsi_stats[j].stat_offset;
1328 data[i++] = (ice_gstrings_vsi_stats[j].sizeof_stat == 1331 data[i++] = (ice_gstrings_vsi_stats[j].sizeof_stat ==
1329 sizeof(u64)) ? *(u64 *)p : *(u32 *)p; 1332 sizeof(u64)) ? *(u64 *)p : *(u32 *)p;
1330 } 1333 }
1331 1334
1332 /* populate per queue stats */ 1335 /* populate per queue stats */