diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-03-05 14:52:18 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-05 14:52:18 -0500 |
commit | 33ca8a53f262b4af40611bea331b8c87d133af72 (patch) | |
tree | d6468c820a556c4915bcb5b761204a0fb19e8225 /net/packet/af_packet.c | |
parent | db2dcb4f91d5fec5c346a82c309187ee821e2495 (diff) | |
parent | 13a7a6ac0a11197edcd0f756a035f472b42cdf8b (diff) |
Merge tag 'v4.0-rc2' into irq/core, to refresh the tree before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 9cfe2e1dd8b5..9c28cec1a083 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -986,8 +986,8 @@ static void prb_clear_rxhash(struct tpacket_kbdq_core *pkc, | |||
986 | static void prb_fill_vlan_info(struct tpacket_kbdq_core *pkc, | 986 | static void prb_fill_vlan_info(struct tpacket_kbdq_core *pkc, |
987 | struct tpacket3_hdr *ppd) | 987 | struct tpacket3_hdr *ppd) |
988 | { | 988 | { |
989 | if (vlan_tx_tag_present(pkc->skb)) { | 989 | if (skb_vlan_tag_present(pkc->skb)) { |
990 | ppd->hv1.tp_vlan_tci = vlan_tx_tag_get(pkc->skb); | 990 | ppd->hv1.tp_vlan_tci = skb_vlan_tag_get(pkc->skb); |
991 | ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); | 991 | ppd->hv1.tp_vlan_tpid = ntohs(pkc->skb->vlan_proto); |
992 | ppd->tp_status = TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; | 992 | ppd->tp_status = TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; |
993 | } else { | 993 | } else { |
@@ -2000,8 +2000,8 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, | |||
2000 | h.h2->tp_net = netoff; | 2000 | h.h2->tp_net = netoff; |
2001 | h.h2->tp_sec = ts.tv_sec; | 2001 | h.h2->tp_sec = ts.tv_sec; |
2002 | h.h2->tp_nsec = ts.tv_nsec; | 2002 | h.h2->tp_nsec = ts.tv_nsec; |
2003 | if (vlan_tx_tag_present(skb)) { | 2003 | if (skb_vlan_tag_present(skb)) { |
2004 | h.h2->tp_vlan_tci = vlan_tx_tag_get(skb); | 2004 | h.h2->tp_vlan_tci = skb_vlan_tag_get(skb); |
2005 | h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); | 2005 | h.h2->tp_vlan_tpid = ntohs(skb->vlan_proto); |
2006 | status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; | 2006 | status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; |
2007 | } else { | 2007 | } else { |
@@ -2102,7 +2102,7 @@ static bool ll_header_truncated(const struct net_device *dev, int len) | |||
2102 | { | 2102 | { |
2103 | /* net device doesn't like empty head */ | 2103 | /* net device doesn't like empty head */ |
2104 | if (unlikely(len <= dev->hard_header_len)) { | 2104 | if (unlikely(len <= dev->hard_header_len)) { |
2105 | net_warn_ratelimited("%s: packet size is too short (%d < %d)\n", | 2105 | net_warn_ratelimited("%s: packet size is too short (%d <= %d)\n", |
2106 | current->comm, len, dev->hard_header_len); | 2106 | current->comm, len, dev->hard_header_len); |
2107 | return true; | 2107 | return true; |
2108 | } | 2108 | } |
@@ -3010,8 +3010,8 @@ static int packet_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
3010 | aux.tp_snaplen = skb->len; | 3010 | aux.tp_snaplen = skb->len; |
3011 | aux.tp_mac = 0; | 3011 | aux.tp_mac = 0; |
3012 | aux.tp_net = skb_network_offset(skb); | 3012 | aux.tp_net = skb_network_offset(skb); |
3013 | if (vlan_tx_tag_present(skb)) { | 3013 | if (skb_vlan_tag_present(skb)) { |
3014 | aux.tp_vlan_tci = vlan_tx_tag_get(skb); | 3014 | aux.tp_vlan_tci = skb_vlan_tag_get(skb); |
3015 | aux.tp_vlan_tpid = ntohs(skb->vlan_proto); | 3015 | aux.tp_vlan_tpid = ntohs(skb->vlan_proto); |
3016 | aux.tp_status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; | 3016 | aux.tp_status |= TP_STATUS_VLAN_VALID | TP_STATUS_VLAN_TPID_VALID; |
3017 | } else { | 3017 | } else { |