netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* macvlan/macvtap patch in patchwork
@ 2011-09-27 19:14 David Miller
  2011-09-27 23:10 ` Ward, David - 0663 - MITLL
  2011-09-27 23:11 ` Ward, David - 0663 - MITLL
  0 siblings, 2 replies; 4+ messages in thread
From: David Miller @ 2011-09-27 19:14 UTC (permalink / raw)
  To: kaber; +Cc: netdev, herbert, krkumar2, david.ward


Could you guys please review:

	http://patchwork.ozlabs.org/patch/115273/

My gut instinct is that the current behavior is intentional, but since
the patch submitter didn't describe exactly what the undesirable
behavior is it's hard to tell what the patch is actually fixing.

Thanks.

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

* Re: macvlan/macvtap patch in patchwork
  2011-09-27 19:14 macvlan/macvtap patch in patchwork David Miller
@ 2011-09-27 23:10 ` Ward, David - 0663 - MITLL
  2011-09-27 23:11 ` Ward, David - 0663 - MITLL
  1 sibling, 0 replies; 4+ messages in thread
From: Ward, David - 0663 - MITLL @ 2011-09-27 23:10 UTC (permalink / raw)
  To: David Miller
  Cc: kaber@trash.net, netdev@vger.kernel.org,
	herbert@gondor.hengli.com.au, krkumar2@in.ibm.com

[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]

Sorry if my commit message was not descriptive enough -- I can revise it 
if you would like.

The macvlan and macvtap drivers both call macvlan_queue_xmit when 
sending outgoing frames.  In the case of unicast frames between 
macvlan/macvtap devices, we first forward the frame to the lowerdev, so 
that its network taps can see it.

The problem is that I was forwarding the frame to the lowerdev the wrong 
way, by calling vlan->forward which serves a different purpose.  
vlan->forward points to dev_forward_skb for macvlan (so the forwarding 
works fine), but it points to macvtap_forward for macvtap (which causes 
an oops when called here).  We need to always use dev_forward_skb to 
forward to a lowerdev.

David


On 27/09/11 15:14, David Miller wrote:
> Could you guys please review:
>
> 	http://patchwork.ozlabs.org/patch/115273/
>
> My gut instinct is that the current behavior is intentional, but since
> the patch submitter didn't describe exactly what the undesirable
> behavior is it's hard to tell what the patch is actually fixing.
>
> Thanks.


-- 
David Ward, Associate Staff
Wideband Tactical Networking Group
MIT Lincoln Laboratory
Office: 781-981-4266
Mobile: 781-999-1925
Fax: 781-981-4583



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5650 bytes --]

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

* Re: macvlan/macvtap patch in patchwork
  2011-09-27 19:14 macvlan/macvtap patch in patchwork David Miller
  2011-09-27 23:10 ` Ward, David - 0663 - MITLL
@ 2011-09-27 23:11 ` Ward, David - 0663 - MITLL
  2011-10-03  0:33   ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Ward, David - 0663 - MITLL @ 2011-09-27 23:11 UTC (permalink / raw)
  To: David Miller
  Cc: kaber@trash.net, netdev@vger.kernel.org,
	herbert@gondor.hengli.com.au, krkumar2@in.ibm.com

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

On 27/09/11 15:14, David Miller wrote:
> Could you guys please review:
>
> 	http://patchwork.ozlabs.org/patch/115273/
>
> My gut instinct is that the current behavior is intentional, but since
> the patch submitter didn't describe exactly what the undesirable
> behavior is it's hard to tell what the patch is actually fixing.
>
> Thanks.

Sorry if my commit message was not descriptive enough -- I can revise it 
if you would like.

The macvlan and macvtap drivers both call macvlan_queue_xmit when 
sending outgoing frames.  In the case of unicast frames between 
macvlan/macvtap devices, we first forward the frame to the lowerdev, so 
that its network taps can see it.

The problem is that I was forwarding the frame to the lowerdev the wrong 
way, by calling vlan->forward which serves a different purpose.  
vlan->forward points to dev_forward_skb for macvlan (so the forwarding 
works fine), but it points to macvtap_forward for macvtap (which causes 
an oops when called here).  We need to always use dev_forward_skb to 
forward to a lowerdev.

David


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5650 bytes --]

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

* Re: macvlan/macvtap patch in patchwork
  2011-09-27 23:11 ` Ward, David - 0663 - MITLL
@ 2011-10-03  0:33   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-10-03  0:33 UTC (permalink / raw)
  To: david.ward; +Cc: kaber, netdev, herbert, krkumar2

From: "Ward, David - 0663 - MITLL" <david.ward@ll.mit.edu>
Date: Tue, 27 Sep 2011 19:11:00 -0400

> The problem is that I was forwarding the frame to the lowerdev the
> wrong way, by calling vlan->forward which serves a different purpose.
> vlan->forward points to dev_forward_skb for macvlan (so the forwarding
> works fine), but it points to macvtap_forward for macvtap (which
> causes an oops when called here).  We need to always use
> dev_forward_skb to forward to a lowerdev.

Thanks for explaining, patch applied.

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

end of thread, other threads:[~2011-10-03  0:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 19:14 macvlan/macvtap patch in patchwork David Miller
2011-09-27 23:10 ` Ward, David - 0663 - MITLL
2011-09-27 23:11 ` Ward, David - 0663 - MITLL
2011-10-03  0:33   ` 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).