···3838 return outer;3939}40404141-#define INET_ECN_xmit(sk) do { inet_sk(sk)->tos |= INET_ECN_ECT_0; } while (0)4242-#define INET_ECN_dontxmit(sk) \4343- do { inet_sk(sk)->tos &= ~INET_ECN_MASK; } while (0)4141+static inline void INET_ECN_xmit(struct sock *sk)4242+{4343+ inet_sk(sk)->tos |= INET_ECN_ECT_0;4444+ if (inet6_sk(sk) != NULL)4545+ inet6_sk(sk)->tclass |= INET_ECN_ECT_0;4646+}4747+4848+static inline void INET_ECN_dontxmit(struct sock *sk)4949+{5050+ inet_sk(sk)->tos &= ~INET_ECN_MASK;5151+ if (inet6_sk(sk) != NULL)5252+ inet6_sk(sk)->tclass &= ~INET_ECN_MASK;5353+}44544555#define IP6_ECN_flow_init(label) do { \4656 (label) &= ~htonl(INET_ECN_MASK << 20); \
+4-4
include/net/llc_pdu.h
···199199 u8 ssap;200200 u8 ctrl_1;201201 u8 ctrl_2;202202-};202202+} __packed;203203204204static inline struct llc_pdu_sn *llc_pdu_sn_hdr(struct sk_buff *skb)205205{···211211 u8 dsap;212212 u8 ssap;213213 u8 ctrl_1;214214-};214214+} __packed;215215216216static inline struct llc_pdu_un *llc_pdu_un_hdr(struct sk_buff *skb)217217{···359359 u8 fmt_id; /* always 0x81 for LLC */360360 u8 type; /* different if NULL/non-NULL LSAP */361361 u8 rw; /* sender receive window */362362-};362362+} __packed;363363364364/**365365 * llc_pdu_init_as_xid_cmd - sets bytes 3, 4 & 5 of LLC header as XID···415415 u8 curr_ssv; /* current send state variable val */416416 u8 curr_rsv; /* current receive state variable */417417 u8 ind_bits; /* indicator bits set with macro */418418-};418418+} __packed;419419420420extern void llc_pdu_set_cmd_rsp(struct sk_buff *skb, u8 type);421421extern void llc_pdu_set_pf_bit(struct sk_buff *skb, u8 bit_value);
+1-1
net/bridge/br_netfilter.c
···737737 nf_bridge->mask |= BRNF_PKT_TYPE;738738 }739739740740- if (br_parse_ip_options(skb))740740+ if (pf == PF_INET && br_parse_ip_options(skb))741741 return NF_DROP;742742743743 /* The physdev module checks on this */
+10-16
net/core/dev.c
···10071007 }1008100810091009 write_lock_bh(&dev_base_lock);10101010- hlist_del(&dev->name_hlist);10101010+ hlist_del_rcu(&dev->name_hlist);10111011 write_unlock_bh(&dev_base_lock);1012101210131013 synchronize_rcu();···51965196 /* Fix illegal checksum combinations */51975197 if ((features & NETIF_F_HW_CSUM) &&51985198 (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {51995199- netdev_info(dev, "mixed HW and IP checksum settings.\n");51995199+ netdev_warn(dev, "mixed HW and IP checksum settings.\n");52005200 features &= ~(NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM);52015201 }5202520252035203 if ((features & NETIF_F_NO_CSUM) &&52045204 (features & (NETIF_F_HW_CSUM|NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {52055205- netdev_info(dev, "mixed no checksumming and other settings.\n");52055205+ netdev_warn(dev, "mixed no checksumming and other settings.\n");52065206 features &= ~(NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM|NETIF_F_HW_CSUM);52075207 }5208520852095209 /* Fix illegal SG+CSUM combinations. */52105210 if ((features & NETIF_F_SG) &&52115211 !(features & NETIF_F_ALL_CSUM)) {52125212- netdev_info(dev,52135213- "Dropping NETIF_F_SG since no checksum feature.\n");52125212+ netdev_dbg(dev,52135213+ "Dropping NETIF_F_SG since no checksum feature.\n");52145214 features &= ~NETIF_F_SG;52155215 }5216521652175217 /* TSO requires that SG is present as well. */52185218 if ((features & NETIF_F_ALL_TSO) && !(features & NETIF_F_SG)) {52195219- netdev_info(dev, "Dropping TSO features since no SG feature.\n");52195219+ netdev_dbg(dev, "Dropping TSO features since no SG feature.\n");52205220 features &= ~NETIF_F_ALL_TSO;52215221 }52225222···5226522652275227 /* Software GSO depends on SG. */52285228 if ((features & NETIF_F_GSO) && !(features & NETIF_F_SG)) {52295229- netdev_info(dev, "Dropping NETIF_F_GSO since no SG feature.\n");52295229+ netdev_dbg(dev, "Dropping NETIF_F_GSO since no SG feature.\n");52305230 features &= ~NETIF_F_GSO;52315231 }52325232···52365236 if (!((features & NETIF_F_GEN_CSUM) ||52375237 (features & (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))52385238 == (NETIF_F_IP_CSUM|NETIF_F_IPV6_CSUM))) {52395239- netdev_info(dev,52395239+ netdev_dbg(dev,52405240 "Dropping NETIF_F_UFO since no checksum offload features.\n");52415241 features &= ~NETIF_F_UFO;52425242 }5243524352445244 if (!(features & NETIF_F_SG)) {52455245- netdev_info(dev,52455245+ netdev_dbg(dev,52465246 "Dropping NETIF_F_UFO since no NETIF_F_SG feature.\n");52475247 features &= ~NETIF_F_UFO;52485248 }···52705270 if (dev->features == features)52715271 return 0;5272527252735273- netdev_info(dev, "Features changed: 0x%08x -> 0x%08x\n",52735273+ netdev_dbg(dev, "Features changed: 0x%08x -> 0x%08x\n",52745274 dev->features, features);5275527552765276 if (dev->netdev_ops->ndo_set_features)···54615461 dev->hw_features |= NETIF_F_SOFT_FEATURES;54625462 dev->features |= NETIF_F_SOFT_FEATURES;54635463 dev->wanted_features = dev->features & dev->hw_features;54645464-54655465- /* Avoid warning from netdev_fix_features() for GSO without SG */54665466- if (!(dev->wanted_features & NETIF_F_SG)) {54675467- dev->wanted_features &= ~NETIF_F_GSO;54685468- dev->features &= ~NETIF_F_GSO;54695469- }5470546454715465 /* Turn on no cache copy if HW is doing checksum */54725466 dev->hw_features |= NETIF_F_NOCACHE_COPY;