From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Simon Horman <horms@verge.net.au>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Jesse Gross <jesse@nicira.com>,
Karsten Keil <isdn@linux-pingi.de>,
Mauro Carvalho Chehab <mchehab@redhat.com>,
linux1394-devel@lists.sourceforge.net,
linux-media@vger.kernel.org, dev@openvswitch.org
Subject: Re: [PATCH] net: add ETH_P_802_3_MIN
Date: Thu, 21 Mar 2013 14:24:03 +0100 [thread overview]
Message-ID: <20130321142403.3c0bfac8@stein> (raw)
In-Reply-To: <1363854568-32228-1-git-send-email-horms@verge.net.au>
On Mar 21 Simon Horman wrote:
> Add a new constant ETH_P_802_3_MIN, the minimum ethernet type for
> an 802.3 frame. Frames with a lower value in the ethernet type field
> are Ethernet II.
>
> Also update all the users of this value that I could find to use the
> new constant.
>
> I anticipate adding some more users of this constant when
> adding MPLS support to Open vSwtich.
>
> As suggested by Jesse Gross.
>
> Compile tested only.
>
> Cc: Jesse Gross <jesse@nicira.com>
> Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
> Cc: Karsten Keil <isdn@linux-pingi.de>
> Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
> Cc: linux1394-devel@lists.sourceforge.net
> Cc: linux-media@vger.kernel.org
> Cc: dev@openvswitch.org
> Signed-off-by: Simon Horman <horms@verge.net.au>
> ---
> drivers/firewire/net.c | 2 +-
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
> drivers/isdn/i4l/isdn_net.c | 2 +-
> drivers/media/dvb-core/dvb_net.c | 6 +++---
> drivers/net/ethernet/sun/niu.c | 2 +-
> drivers/net/plip/plip.c | 2 +-
> include/uapi/linux/if_ether.h | 3 +++
> net/ethernet/eth.c | 2 +-
> net/openvswitch/datapath.c | 2 +-
> 8 files changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
> index 2b27bff..bd34ca1 100644
> --- a/drivers/firewire/net.c
> +++ b/drivers/firewire/net.c
> @@ -630,7 +630,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
> if (memcmp(eth->h_dest, net->dev_addr, net->addr_len))
> skb->pkt_type = PACKET_OTHERHOST;
> }
> - if (ntohs(eth->h_proto) >= 1536) {
> + if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) {
> protocol = eth->h_proto;
> } else {
> rawp = (u16 *)skb->data;
[...]
--
Stefan Richter
-=====-===-= --== =-=-=
http://arcgraph.de/sr/
WARNING: multiple messages have this Message-ID (diff)
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Simon Horman <horms@verge.net.au>
Cc: dev@openvswitch.org, Karsten Keil <isdn@linux-pingi.de>,
linux1394-devel@lists.sourceforge.net,
Carvalho Chehab <mchehab@redhat.com>,
netdev@vger.kernel.org, Gross <jesse@nicira.com>,
linux-media@vger.kernel.org, Jesse,
"David S. Miller" <davem@davemloft.net>,
Mauro
Subject: Re: [PATCH] net: add ETH_P_802_3_MIN
Date: Thu, 21 Mar 2013 14:24:03 +0100 [thread overview]
Message-ID: <20130321142403.3c0bfac8@stein> (raw)
In-Reply-To: <1363854568-32228-1-git-send-email-horms@verge.net.au>
On Mar 21 Simon Horman wrote:
> Add a new constant ETH_P_802_3_MIN, the minimum ethernet type for
> an 802.3 frame. Frames with a lower value in the ethernet type field
> are Ethernet II.
>
> Also update all the users of this value that I could find to use the
> new constant.
>
> I anticipate adding some more users of this constant when
> adding MPLS support to Open vSwtich.
>
> As suggested by Jesse Gross.
>
> Compile tested only.
>
> Cc: Jesse Gross <jesse@nicira.com>
> Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
> Cc: Karsten Keil <isdn@linux-pingi.de>
> Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
> Cc: linux1394-devel@lists.sourceforge.net
> Cc: linux-media@vger.kernel.org
> Cc: dev@openvswitch.org
> Signed-off-by: Simon Horman <horms@verge.net.au>
> ---
> drivers/firewire/net.c | 2 +-
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
> drivers/isdn/i4l/isdn_net.c | 2 +-
> drivers/media/dvb-core/dvb_net.c | 6 +++---
> drivers/net/ethernet/sun/niu.c | 2 +-
> drivers/net/plip/plip.c | 2 +-
> include/uapi/linux/if_ether.h | 3 +++
> net/ethernet/eth.c | 2 +-
> net/openvswitch/datapath.c | 2 +-
> 8 files changed, 12 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
> index 2b27bff..bd34ca1 100644
> --- a/drivers/firewire/net.c
> +++ b/drivers/firewire/net.c
> @@ -630,7 +630,7 @@ static int fwnet_finish_incoming_packet(struct net_device *net,
> if (memcmp(eth->h_dest, net->dev_addr, net->addr_len))
> skb->pkt_type = PACKET_OTHERHOST;
> }
> - if (ntohs(eth->h_proto) >= 1536) {
> + if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) {
> protocol = eth->h_proto;
> } else {
> rawp = (u16 *)skb->data;
[...]
--
Stefan Richter
-=====-===-= --== =-=-=
http://arcgraph.de/sr/
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
next prev parent reply other threads:[~2013-03-21 13:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-21 8:29 [PATCH] net: add ETH_P_802_3_MIN Simon Horman
2013-03-21 13:24 ` Stefan Richter [this message]
2013-03-21 13:24 ` Stefan Richter
2013-03-21 14:02 ` Mauro Carvalho Chehab
2013-03-21 14:02 ` Mauro Carvalho Chehab
2013-03-21 15:56 ` David Miller
2013-03-22 13:49 ` Simon Horman
2013-03-22 13:49 ` Simon Horman
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=20130321142403.3c0bfac8@stein \
--to=stefanr@s5r6.in-berlin.de \
--cc=davem@davemloft.net \
--cc=dev@openvswitch.org \
--cc=horms@verge.net.au \
--cc=isdn@linux-pingi.de \
--cc=jesse@nicira.com \
--cc=linux-media@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=mchehab@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.