diff options
author | Daniel Pieczko | 2015-06-02 12:40:05 +0200 |
---|---|---|
committer | David S. Miller | 2015-06-02 21:57:29 +0200 |
commit | d94619cdfc561eee18e2d40ab6563e3f2f072fdd (patch) | |
tree | 70226ecbdcf7e06907621d5ea4d9ff2bf181543c /drivers/net/ethernet/sfc/mcdi_pcol.h | |
parent | sfc: suppress ENOENT error messages from MC_CMD_MAC_STATS (diff) | |
download | kernel-qcow2-linux-d94619cdfc561eee18e2d40ab6563e3f2f072fdd.tar.gz kernel-qcow2-linux-d94619cdfc561eee18e2d40ab6563e3f2f072fdd.tar.xz kernel-qcow2-linux-d94619cdfc561eee18e2d40ab6563e3f2f072fdd.zip |
sfc: suppress vadaptor stats when EVB is not present
The raw_mask array is not initialised, so it needs to be
explicitly set to zero in the 'else' branch.
If the EVB capability is not present, a port cannot have multiple
functions so the per-port MAC stats are correct and should match
the corresponding vadaptor stats, so this redundancy can be
removed from the ethtool stats output.
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/mcdi_pcol.h')
-rw-r--r-- | drivers/net/ethernet/sfc/mcdi_pcol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi_pcol.h b/drivers/net/ethernet/sfc/mcdi_pcol.h index 181978d64845..45fca9fc66b7 100644 --- a/drivers/net/ethernet/sfc/mcdi_pcol.h +++ b/drivers/net/ethernet/sfc/mcdi_pcol.h @@ -5600,6 +5600,8 @@ #define MC_CMD_GET_CAPABILITIES_OUT_MCAST_FILTER_CHAINING_WIDTH 1 #define MC_CMD_GET_CAPABILITIES_OUT_PM_AND_RXDP_COUNTERS_LBN 27 #define MC_CMD_GET_CAPABILITIES_OUT_PM_AND_RXDP_COUNTERS_WIDTH 1 +#define MC_CMD_GET_CAPABILITIES_OUT_EVB_LBN 30 +#define MC_CMD_GET_CAPABILITIES_OUT_EVB_WIDTH 1 /* RxDPCPU firmware id. */ #define MC_CMD_GET_CAPABILITIES_OUT_RX_DPCPU_FW_ID_OFST 4 #define MC_CMD_GET_CAPABILITIES_OUT_RX_DPCPU_FW_ID_LEN 2 |