netpoll: Only call ndo_start_xmit from a single place
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Mar 2014 22:37:28 +0000 (15:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Mar 2014 21:58:37 +0000 (17:58 -0400)
commit944e294857033dbe519a136cad05dc4e2570874e
treed7d3f8a8890fc8ad488cc6e1456287416850d94d
parenta8779ec1c5e60548b7b661a8d74a8cecf7775690
netpoll: Only call ndo_start_xmit from a single place

Factor out the code that needs to surround ndo_start_xmit
from netpoll_send_skb_on_dev into netpoll_start_xmit.

It is an unfortunate fact that as the netpoll code has been maintained
the primary call site ndo_start_xmit learned how to handle vlans
and timestamps but the second call of ndo_start_xmit in queue_process
did not.

With the introduction of netpoll_start_xmit this associated logic now
happens at both call sites of ndo_start_xmit and should make it easy
for that to continue into the future.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c