All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: remove trans_start from struct net_device
@ 2016-05-03 14:30 Florian Westphal
  2016-05-03 14:30 ` [PATCH net-next 1/5] dmfe: kill DEVICE define Florian Westphal
                   ` (6 more replies)
  0 siblings, 7 replies; 31+ messages in thread
From: Florian Westphal @ 2016-05-03 14:30 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel

We currently have two instances for trans_start, once in
net_device and once in netdev_queue.

This series removes trans_start from net_device.
Updates to dev->trans_start are replaced with updates to netdev queue 0.

This series is compile-tested only.
Replacement is done in 3 steps:

1. Replace read-accesses:
  x = dev->trans_start

  gets replaced by
  x = dev_trans_start(dev)

2. Replace write accesses:
  dev->trans_start = jiffies;

  gets replaced with new helper:
  netif_trans_update(dev);

3. This helper is then changed to set
   netdev_get_tx_queue(dev, 0)->trans_start
   instead of dev->trans_start.

After this dev->trans_start can be removed.

It should be noted that after this series several instances
of netif_trans_update() are useless (if they occur in
.ndo_start_xmit and driver doesn't set LLTX flag -- stack already
did an update).

Comments welcome.

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2016-05-12 19:40 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03 14:30 [PATCH net-next 0/5] net: remove trans_start from struct net_device Florian Westphal
2016-05-03 14:30 ` [PATCH net-next 1/5] dmfe: kill DEVICE define Florian Westphal
2016-05-03 14:30 ` [PATCH net-next 2/5] drivers: replace dev->trans_start accesses with dev_trans_start Florian Westphal
2016-05-03 14:30   ` Florian Westphal
     [not found]   ` <1462285862-30946-3-git-send-email-fw-HFFVJYpyMKqzQB+pC5nmwQ@public.gmane.org>
2016-05-12 19:39     ` Doug Ledford
2016-05-12 19:39       ` Doug Ledford
2016-05-03 14:31 ` [PATCH net-next 3/5] netdevice: add helper to update trans_start Florian Westphal
2016-05-03 14:33 ` [B.A.T.M.A.N.] [PATCH net-next 4/5] treewide: replace dev->trans_start update with helper Florian Westphal
2016-05-03 14:33   ` Florian Westphal
2016-05-03 14:33   ` Florian Westphal
2016-05-03 14:33   ` Florian Westphal
2016-05-03 14:33   ` [PATCH net-next 5/5] net: remove dev->trans_start Florian Westphal
2016-05-04  8:14   ` [B.A.T.M.A.N.] [PATCH net-next 4/5] treewide: replace dev->trans_start update with helper Felipe Balbi
2016-05-04  8:14     ` Felipe Balbi
2016-05-04  8:14     ` Felipe Balbi
2016-05-04  8:14     ` Felipe Balbi
2016-05-04 11:33   ` [B.A.T.M.A.N.] " Mugunthan V N
2016-05-04 11:33     ` Mugunthan V N
2016-05-04 11:33     ` Mugunthan V N
2016-05-04 17:20   ` [B.A.T.M.A.N.] " Antonio Quartulli
2016-05-04 17:20     ` Antonio Quartulli
2016-05-09  7:12   ` [B.A.T.M.A.N.] " Marc Kleine-Budde
2016-05-09  7:12     ` Marc Kleine-Budde
2016-05-09  7:12     ` Marc Kleine-Budde
2016-05-12 19:40   ` [B.A.T.M.A.N.] " Doug Ledford
2016-05-12 19:40     ` Doug Ledford
2016-05-03 14:43 ` Florian Westphal
2016-05-03 14:43 ` [PATCH net-next 5/5] net: remove dev->trans_start Florian Westphal
2016-05-03 17:23   ` kbuild test robot
2016-05-03 17:34     ` Florian Westphal
2016-05-04 18:17 ` [PATCH net-next 0/5] net: remove trans_start from struct net_device David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.