aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index fe0912f161ce..bfaa0a83f0eb 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -855,7 +855,8 @@ static void prb_fill_vlan_info(struct tpacket_kbdq_core *pkc,
855 ppd->hv1.tp_vlan_tci = vlan_tx_tag_get(pkc->skb); 855 ppd->hv1.tp_vlan_tci = vlan_tx_tag_get(pkc->skb);
856 ppd->tp_status = TP_STATUS_VLAN_VALID; 856 ppd->tp_status = TP_STATUS_VLAN_VALID;
857 } else { 857 } else {
858 ppd->hv1.tp_vlan_tci = ppd->tp_status = 0; 858 ppd->hv1.tp_vlan_tci = 0;
859 ppd->tp_status = TP_STATUS_AVAILABLE;
859 } 860 }
860} 861}
861 862
@@ -1951,7 +1952,7 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
1951 int tp_len, size_max; 1952 int tp_len, size_max;
1952 unsigned char *addr; 1953 unsigned char *addr;
1953 int len_sum = 0; 1954 int len_sum = 0;
1954 int status = 0; 1955 int status = TP_STATUS_AVAILABLE;
1955 int hlen, tlen; 1956 int hlen, tlen;
1956 1957
1957 mutex_lock(&po->pg_vec_lock); 1958 mutex_lock(&po->pg_vec_lock);