From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Richter Subject: Re: [PATCH] net: add ETH_P_802_3_MIN Date: Thu, 21 Mar 2013 14:24:03 +0100 Message-ID: <20130321142403.3c0bfac8@stein> References: <1363854568-32228-1-git-send-email-horms@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: dev@openvswitch.org, Karsten Keil , linux1394-devel@lists.sourceforge.net, Carvalho Chehab , netdev@vger.kernel.org, Gross , linux-media@vger.kernel.org, Jesse, "David S. Miller" , Mauro To: Simon Horman Return-path: In-Reply-To: <1363854568-32228-1-git-send-email-horms@verge.net.au> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux1394-devel-bounces@lists.sourceforge.net List-Id: netdev.vger.kernel.org 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 > Cc: Stefan Richter > Cc: Karsten Keil > Cc: Mauro Carvalho Chehab > Cc: linux1394-devel@lists.sourceforge.net > Cc: linux-media@vger.kernel.org > Cc: dev@openvswitch.org > Signed-off-by: Simon Horman > --- > drivers/firewire/net.c | 2 +- Acked-by: Stefan Richter > 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