* [GIT net] Open vSwitch @ 2012-11-27 18:37 Jesse Gross [not found] ` <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> ` (2 more replies) 0 siblings, 3 replies; 6+ messages in thread From: Jesse Gross @ 2012-11-27 18:37 UTC (permalink / raw) To: David Miller; +Cc: dev-yBygre7rU0TnMu66kgdUjQ, netdev-u79uwXL29TY76Z2rM5mHXA These two small bug fixes are intended for 3.7/net if there is still time. The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jesse/openvswitch.git fixes for you to fetch changes up to d04d382980c86bdee9960c3eb157a73f8ed230cc: openvswitch: Store flow key len if ARP opcode is not request or reply. (2012-10-30 17:17:09 -0700) ---------------------------------------------------------------- Jesse Gross (1): openvswitch: Print device when warning about over MTU packets. Mehak Mahajan (1): openvswitch: Store flow key len if ARP opcode is not request or reply. net/openvswitch/flow.c | 14 +++++--------- net/openvswitch/vport-netdev.c | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org>]
* [PATCH net 1/2] openvswitch: Print device when warning about over MTU packets. [not found] ` <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> @ 2012-11-27 18:37 ` Jesse Gross 2012-11-27 18:37 ` [PATCH net 2/2] openvswitch: Store flow key len if ARP opcode is not request or reply Jesse Gross 1 sibling, 0 replies; 6+ messages in thread From: Jesse Gross @ 2012-11-27 18:37 UTC (permalink / raw) To: David Miller; +Cc: dev-yBygre7rU0TnMu66kgdUjQ, netdev-u79uwXL29TY76Z2rM5mHXA If an attempt is made to transmit a packet that is over the device's MTU then we log it using the datapath's name. However, it is much more helpful to use the device name instead. Signed-off-by: Jesse Gross <jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> --- net/openvswitch/vport-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/openvswitch/vport-netdev.c b/net/openvswitch/vport-netdev.c index 3c1e58b..a903348 100644 --- a/net/openvswitch/vport-netdev.c +++ b/net/openvswitch/vport-netdev.c @@ -158,7 +158,7 @@ static int netdev_send(struct vport *vport, struct sk_buff *skb) if (unlikely(packet_length(skb) > mtu && !skb_is_gso(skb))) { net_warn_ratelimited("%s: dropped over-mtu packet: %d > %d\n", - ovs_dp_name(vport->dp), + netdev_vport->dev->name, packet_length(skb), mtu); goto error; } -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH net 2/2] openvswitch: Store flow key len if ARP opcode is not request or reply. [not found] ` <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> 2012-11-27 18:37 ` [PATCH net 1/2] openvswitch: Print device when warning about over MTU packets Jesse Gross @ 2012-11-27 18:37 ` Jesse Gross 1 sibling, 0 replies; 6+ messages in thread From: Jesse Gross @ 2012-11-27 18:37 UTC (permalink / raw) To: David Miller Cc: dev-yBygre7rU0TnMu66kgdUjQ, netdev-u79uwXL29TY76Z2rM5mHXA, Mehak Mahajan From: Mehak Mahajan <mmahajan-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> We currently only extract the ARP payload if the opcode indicates that it is a request or reply. However, we also only set the key length in these situations even though it should still be possible to match on the opcode. There's no real reason to restrict the ARP opcode since all have the same format so this simply removes the check. Signed-off-by: Mehak Mahajan <mmahajan-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> Signed-off-by: Jesse Gross <jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> --- net/openvswitch/flow.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/net/openvswitch/flow.c b/net/openvswitch/flow.c index 98c7063..733cbf4 100644 --- a/net/openvswitch/flow.c +++ b/net/openvswitch/flow.c @@ -702,15 +702,11 @@ int ovs_flow_extract(struct sk_buff *skb, u16 in_port, struct sw_flow_key *key, /* We only match on the lower 8 bits of the opcode. */ if (ntohs(arp->ar_op) <= 0xff) key->ip.proto = ntohs(arp->ar_op); - - if (key->ip.proto == ARPOP_REQUEST - || key->ip.proto == ARPOP_REPLY) { - memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); - memcpy(&key->ipv4.addr.dst, arp->ar_tip, sizeof(key->ipv4.addr.dst)); - memcpy(key->ipv4.arp.sha, arp->ar_sha, ETH_ALEN); - memcpy(key->ipv4.arp.tha, arp->ar_tha, ETH_ALEN); - key_len = SW_FLOW_KEY_OFFSET(ipv4.arp); - } + memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); + memcpy(&key->ipv4.addr.dst, arp->ar_tip, sizeof(key->ipv4.addr.dst)); + memcpy(key->ipv4.arp.sha, arp->ar_sha, ETH_ALEN); + memcpy(key->ipv4.arp.tha, arp->ar_tha, ETH_ALEN); + key_len = SW_FLOW_KEY_OFFSET(ipv4.arp); } } else if (key->eth.type == htons(ETH_P_IPV6)) { int nh_len; /* IPv6 Header + Extensions */ -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [GIT net] Open vSwitch 2012-11-27 18:37 [GIT net] Open vSwitch Jesse Gross [not found] ` <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> @ 2012-11-28 18:48 ` David Miller 2012-11-28 19:08 ` Jesse Gross 2012-11-28 23:04 ` David Miller 2 siblings, 1 reply; 6+ messages in thread From: David Miller @ 2012-11-28 18:48 UTC (permalink / raw) To: jesse; +Cc: netdev, dev Date: Tue, 27 Nov 2012 10:37:01 -0800 Is it really Tuesday morning where you are? ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT net] Open vSwitch 2012-11-28 18:48 ` [GIT net] Open vSwitch David Miller @ 2012-11-28 19:08 ` Jesse Gross 0 siblings, 0 replies; 6+ messages in thread From: Jesse Gross @ 2012-11-28 19:08 UTC (permalink / raw) To: David Miller; +Cc: netdev, dev On Wed, Nov 28, 2012 at 10:48 AM, David Miller <davem@davemloft.net> wrote: > > Date: Tue, 27 Nov 2012 10:37:01 -0800 > > Is it really Tuesday morning where you are? Unfortunately, no. It's VM clock slew, which I've fixed now. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT net] Open vSwitch 2012-11-27 18:37 [GIT net] Open vSwitch Jesse Gross [not found] ` <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> 2012-11-28 18:48 ` [GIT net] Open vSwitch David Miller @ 2012-11-28 23:04 ` David Miller 2 siblings, 0 replies; 6+ messages in thread From: David Miller @ 2012-11-28 23:04 UTC (permalink / raw) To: jesse; +Cc: netdev, dev From: Jesse Gross <jesse@nicira.com> Date: Tue, 27 Nov 2012 10:37:01 -0800 > These two small bug fixes are intended for 3.7/net if there is still time. Pulled, thanks. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-11-28 23:04 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-11-27 18:37 [GIT net] Open vSwitch Jesse Gross [not found] ` <1354041423-3050-1-git-send-email-jesse-l0M0P4e3n4LQT0dZR+AlfA@public.gmane.org> 2012-11-27 18:37 ` [PATCH net 1/2] openvswitch: Print device when warning about over MTU packets Jesse Gross 2012-11-27 18:37 ` [PATCH net 2/2] openvswitch: Store flow key len if ARP opcode is not request or reply Jesse Gross 2012-11-28 18:48 ` [GIT net] Open vSwitch David Miller 2012-11-28 19:08 ` Jesse Gross 2012-11-28 23:04 ` 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).