summaryrefslogtreecommitdiff
path: root/include/net/x25device.h
blob: 1fa08b49f1c25d1a3b9a1c930e238b45db52535a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _X25DEVICE_H
#define _X25DEVICE_H

#include <linux/if_ether.h>
#include <linux/if_packet.h>
#include <linux/if_x25.h>
#include <linux/skbuff.h>

static inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev)
{
	skb->dev = dev;
	skb_reset_mac_header(skb);
	skb->pkt_type = PACKET_HOST;
	
	return htons(ETH_P_X25);
}
#endif
mit info' class='commit-info'> authorThomas Gleixner <tglx@linutronix.de>2016-12-25 12:43:07 +0100 committerThomas Gleixner <tglx@linutronix.de>2016-12-25 17:21:23 +0100 commit1f3a8e49d8f28f498b8694464623ac20aebfe62a (patch) treeda0b5101c3be3e18b55b0a11974f63a3195704f9 /tools/build/Makefile.feature parent8b0e195314fabd58a331c4f7b6db75a1565535d7 (diff)
ktime: Get rid of ktime_equal()
No point in going through loops and hoops instead of just comparing the values. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'tools/build/Makefile.feature')