netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Resolve packet capturing on macvlan lowerdev
@ 2011-04-21 13:31 David Ward
  2011-04-21 13:31 ` [PATCH 1/2] net: Export dev_queue_xmit_nit for use by macvlan driver David Ward
  2011-04-21 13:31 ` [PATCH 2/2] macvlan: Send frames to AF_PACKET sockets attached to lowerdev David Ward
  0 siblings, 2 replies; 4+ messages in thread
From: David Ward @ 2011-04-21 13:31 UTC (permalink / raw)
  To: netdev, kaber; +Cc: David Ward

The following two patches address situations where macvlan interfaces on 
the same lowerdev are created inside separate containers/namespaces, and 
traffic between these interfaces needs to be captured by monitoring the 
lowerdev outside the containers/namespaces using tcpdump or Wireshark. 
The only case where this doesn't work now is for unicast frames when the 
macvlan interfaces are operating in bridge mode; this fixes that case.

Should the dev_queue_xmit_nit function be renamed to something more 
meaningful, which would indicate its role in sending outgoing frames to 
AF_PACKET sockets? It is currently a misnomer: this function used to be 
invoked by dev_queue_xmit, but that is no longer the case.

Thanks,

David


David Ward (2):
  net: Export dev_queue_xmit_nit for use by macvlan driver
  macvlan: Send frames to AF_PACKET sockets attached to lowerdev

 drivers/net/macvlan.c     |    1 +
 include/linux/netdevice.h |    2 ++
 net/core/dev.c            |   14 +++++++++-----
 3 files changed, 12 insertions(+), 5 deletions(-)

-- 
1.7.4


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

end of thread, other threads:[~2011-04-28  6:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-21 13:31 [PATCH 0/2] Resolve packet capturing on macvlan lowerdev David Ward
2011-04-21 13:31 ` [PATCH 1/2] net: Export dev_queue_xmit_nit for use by macvlan driver David Ward
2011-04-21 13:31 ` [PATCH 2/2] macvlan: Send frames to AF_PACKET sockets attached to lowerdev David Ward
2011-04-28  6:09   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).