From: "Ward, David - 0663 - MITLL" <david.ward@ll.mit.edu>
To: David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"kaber@trash.net" <kaber@trash.net>
Subject: Re: [PATCHv2 1/2] net: Export dev_queue_xmit_nit for use by macvlan driver
Date: Sat, 7 May 2011 12:47:06 -0400 [thread overview]
Message-ID: <4DC5778A.6000307@ll.mit.edu> (raw)
In-Reply-To: <20110505.105019.112577258.davem@davemloft.net>
[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]
On 05/05/2011 01:50 PM, David Miller wrote:
> From: David Ward<david.ward@ll.mit.edu>
> Date: Thu, 28 Apr 2011 20:22:31 -0400
>
>> @@ -1521,11 +1521,13 @@ static inline int deliver_skb(struct sk_buff *skb,
>> }
>>
>> /*
>> - * Support routine. Sends outgoing frames to any network
>> - * taps currently in use.
>> + * dev_queue_xmit_nit - send outgoing frame to AF_PACKET sockets
>> + *
>> + * @skb: buffer to send
>> + * @dev: network device that AF_PACKET sockets are attached to (if any)
>> */
> I really don't like exposing these kinds of internals for what is
> largely a macvlan internal issue. Please find a less intrustive way
> to solve this problem.
>
> Thanks.
What do you think about creating __dev_forward_skb, which takes as an
additional parameter a device (or maybe a list of devices) whose taps
should see this packet as it is forwarded, such as a macvlan lowerdev?
This function would be able to call dev_queue_xmit_nit for (each of)
these devices.
Since the list of current network taps (ptype_all) is static inside
net/core/dev.c, some type of change has to be made to net/core/dev.c to
fix this.
Thanks,
David
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5650 bytes --]
next prev parent reply other threads:[~2011-05-07 17:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-29 0:22 [PATCHv2 0/2] Resolve packet capturing on macvlan lowerdev David Ward
2011-04-29 0:22 ` [PATCHv2 1/2] net: Export dev_queue_xmit_nit for use by macvlan driver David Ward
2011-05-05 17:50 ` David Miller
2011-05-07 16:47 ` Ward, David - 0663 - MITLL [this message]
2011-04-29 0:22 ` [PATCHv2 2/2] macvlan: Send frames to AF_PACKET sockets attached to lowerdev David Ward
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DC5778A.6000307@ll.mit.edu \
--to=david.ward@ll.mit.edu \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).