]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
gianfar: Remove unused field grp_id from gfar_priv_grp
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Thu, 1 Aug 2013 07:07:05 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 20:16:23 +0000 (13:16 -0700)
grp->grp_id is obsolete. It has no use in the current driver.
Remove it from gfar_priv_grp and put the 'rstat' member
in its place, in the 2nd cache line, as rstat needs fast access.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h

index 8d2db7b808b7cb4321dbc6edeb12ebab94b7b0f0..dbb34f7ce448fc0576adea06a9b6e8025c772c6f 100644 (file)
@@ -593,7 +593,6 @@ static int gfar_parse_group(struct device_node *np,
                        return -EINVAL;
        }
 
-       grp->grp_id = priv->num_grps;
        grp->priv = priv;
        spin_lock_init(&grp->grplock);
        if (priv->mode == MQ_MG_MODE) {
index 04b552cd419d5f2d8b1546c8371b5ebbe13bf8ff..ee19f2c138a60ae82003bcda1cfdae1695ca7b91 100644 (file)
@@ -1009,7 +1009,6 @@ struct gfar_irqinfo {
  *     @napi: the napi poll function
  *     @priv: back pointer to the priv structure
  *     @regs: the ioremapped register space for this group
- *     @grp_id: group id for this group
  *     @irqinfo: TX/RX/ER irq data for this group
  */
 
@@ -1018,11 +1017,10 @@ struct gfar_priv_grp {
        struct  napi_struct napi;
        struct gfar_private *priv;
        struct gfar __iomem *regs;
-       unsigned int grp_id;
+       unsigned int rstat;
        unsigned long num_rx_queues;
        unsigned long rx_bit_map;
        /* cacheline 3 */
-       unsigned int rstat;
        unsigned int tstat;
        unsigned long num_tx_queues;
        unsigned long tx_bit_map;