i40e/i40evf: remove rx_errors and rx_missed
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 23 Apr 2014 04:50:19 +0000 (04:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 5 Jun 2014 09:50:02 +0000 (02:50 -0700)
The rx_errors (GLV_REPC) and rx_missed (GLV_RMPC) were removed
from the chip design.

Change-ID: Ifdeb69c90feac64ec95c36d3d32c75e3a06de3b7
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_main.c
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c

index 1aaec40..1bd0adb 100644 (file)
@@ -862,12 +862,11 @@ static void i40e_dbg_dump_eth_stats(struct i40e_pf *pf,
                 "    rx_bytes = \t%lld \trx_unicast = \t\t%lld \trx_multicast = \t%lld\n",
                estats->rx_bytes, estats->rx_unicast, estats->rx_multicast);
        dev_info(&pf->pdev->dev,
-                "    rx_broadcast = \t%lld \trx_discards = \t\t%lld \trx_errors = \t%lld\n",
-                estats->rx_broadcast, estats->rx_discards, estats->rx_errors);
+                "    rx_broadcast = \t%lld \trx_discards = \t\t%lld\n",
+                estats->rx_broadcast, estats->rx_discards);
        dev_info(&pf->pdev->dev,
-                "    rx_missed = \t%lld \trx_unknown_protocol = \t%lld \ttx_bytes = \t%lld\n",
-                estats->rx_missed, estats->rx_unknown_protocol,
-                estats->tx_bytes);
+                "    rx_unknown_protocol = \t%lld \ttx_bytes = \t%lld\n",
+                estats->rx_unknown_protocol, estats->tx_bytes);
        dev_info(&pf->pdev->dev,
                 "    tx_unicast = \t%lld \ttx_multicast = \t\t%lld \ttx_broadcast = \t%lld\n",
                 estats->tx_unicast, estats->tx_multicast, estats->tx_broadcast);
index 354181d..e23d514 100644 (file)
@@ -78,7 +78,6 @@ static int i40e_add_fdir_ethtool(struct i40e_vsi *vsi,
 static struct i40e_stats i40e_gstrings_stats[] = {
        I40E_PF_STAT("rx_bytes", stats.eth.rx_bytes),
        I40E_PF_STAT("tx_bytes", stats.eth.tx_bytes),
-       I40E_PF_STAT("rx_errors", stats.eth.rx_errors),
        I40E_PF_STAT("tx_errors", stats.eth.tx_errors),
        I40E_PF_STAT("rx_dropped", stats.eth.rx_discards),
        I40E_PF_STAT("tx_dropped", stats.eth.tx_discards),
index e340e3b..76bd168 100644 (file)
@@ -803,8 +803,6 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
 
        /* update netdev stats from eth stats */
        i40e_update_eth_stats(vsi);
-       ons->rx_errors = oes->rx_errors;
-       ns->rx_errors = es->rx_errors;
        ons->tx_errors = oes->tx_errors;
        ns->tx_errors = es->tx_errors;
        ons->multicast = oes->rx_multicast;
index 02e8f9a..5a930b3 100644 (file)
@@ -972,8 +972,6 @@ struct i40e_eth_stats {
        u64 rx_multicast;               /* mprc */
        u64 rx_broadcast;               /* bprc */
        u64 rx_discards;                /* rdpc */
-       u64 rx_errors;                  /* repc */
-       u64 rx_missed;                  /* rmpc */
        u64 rx_unknown_protocol;        /* rupp */
        u64 tx_bytes;                   /* gotc */
        u64 tx_unicast;                 /* uptc */
index eb2e9f3..4fc9835 100644 (file)
@@ -972,8 +972,6 @@ struct i40e_eth_stats {
        u64 rx_multicast;               /* mprc */
        u64 rx_broadcast;               /* bprc */
        u64 rx_discards;                /* rdpc */
-       u64 rx_errors;                  /* repc */
-       u64 rx_missed;                  /* rmpc */
        u64 rx_unknown_protocol;        /* rupp */
        u64 tx_bytes;                   /* gotc */
        u64 tx_unicast;                 /* uptc */
index 8d41a88..60407a9 100644 (file)
@@ -47,8 +47,6 @@ static const struct i40evf_stats i40evf_gstrings_stats[] = {
        I40EVF_STAT("rx_multicast", current_stats.rx_multicast),
        I40EVF_STAT("rx_broadcast", current_stats.rx_broadcast),
        I40EVF_STAT("rx_discards", current_stats.rx_discards),
-       I40EVF_STAT("rx_errors", current_stats.rx_errors),
-       I40EVF_STAT("rx_missed", current_stats.rx_missed),
        I40EVF_STAT("rx_unknown_protocol", current_stats.rx_unknown_protocol),
        I40EVF_STAT("tx_bytes", current_stats.tx_bytes),
        I40EVF_STAT("tx_unicast", current_stats.tx_unicast),
index 7f80bb4..b3cd3cd 100644 (file)
@@ -748,9 +748,8 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter,
                                                 stats->tx_broadcast;
                adapter->net_stats.rx_bytes = stats->rx_bytes;
                adapter->net_stats.tx_bytes = stats->tx_bytes;
-               adapter->net_stats.rx_errors = stats->rx_errors;
                adapter->net_stats.tx_errors = stats->tx_errors;
-               adapter->net_stats.rx_dropped = stats->rx_missed;
+               adapter->net_stats.rx_dropped = stats->rx_discards;
                adapter->net_stats.tx_dropped = stats->tx_discards;
                adapter->current_stats = *stats;
                }