Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab611487 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller
Browse files

[NET]: __be'ify *_type_trans()



tr_type_trans(), hippi_type_trans() left as-is.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 84531c24
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -369,7 +369,7 @@ static void myri_tx(struct myri_eth *mp, struct net_device *dev)
 * assume 802.3 if the type field is short enough to be a length.
 * assume 802.3 if the type field is short enough to be a length.
 * This is normal practice and works for any 'now in use' protocol.
 * This is normal practice and works for any 'now in use' protocol.
 */
 */
static unsigned short myri_type_trans(struct sk_buff *skb, struct net_device *dev)
static __be16 myri_type_trans(struct sk_buff *skb, struct net_device *dev)
{
{
	struct ethhdr *eth;
	struct ethhdr *eth;
	unsigned char *rawp;
	unsigned char *rawp;
+1 −1
Original line number Original line Diff line number Diff line
@@ -540,7 +540,7 @@ plip_receive(unsigned short nibble_timeout, struct net_device *dev,
 *	in far too many old systems not all even running Linux.
 *	in far too many old systems not all even running Linux.
 */
 */
 
 
static unsigned short plip_type_trans(struct sk_buff *skb, struct net_device *dev)
static __be16 plip_type_trans(struct sk_buff *skb, struct net_device *dev)
{
{
	struct ethhdr *eth;
	struct ethhdr *eth;
	unsigned char *rawp;
	unsigned char *rawp;
+1 −2
Original line number Original line Diff line number Diff line
@@ -861,8 +861,7 @@ fst_tx_dma_complete(struct fst_card_info *card, struct fst_port_info *port,
/*
/*
 * Mark it for our own raw sockets interface
 * Mark it for our own raw sockets interface
 */
 */
static unsigned short farsync_type_trans(struct sk_buff *skb,
static __be16 farsync_type_trans(struct sk_buff *skb, struct net_device *dev)
					 struct net_device *dev)
{
{
	skb->dev = dev;
	skb->dev = dev;
	skb->mac.raw = skb->data;
	skb->mac.raw = skb->data;
+1 −2
Original line number Original line Diff line number Diff line
@@ -91,8 +91,7 @@ static void cisco_keepalive_send(struct net_device *dev, u32 type,






static unsigned short cisco_type_trans(struct sk_buff *skb,
static __be16 cisco_type_trans(struct sk_buff *skb, struct net_device *dev)
				       struct net_device *dev)
{
{
	hdlc_header *data = (hdlc_header*)skb->data;
	hdlc_header *data = (hdlc_header*)skb->data;


+1 −2
Original line number Original line Diff line number Diff line
@@ -66,8 +66,7 @@ static void ppp_close(struct net_device *dev)






static unsigned short ppp_type_trans(struct sk_buff *skb,
static __be16 ppp_type_trans(struct sk_buff *skb, struct net_device *dev)
				     struct net_device *dev)
{
{
	return __constant_htons(ETH_P_WAN_PPP);
	return __constant_htons(ETH_P_WAN_PPP);
}
}
Loading