mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking changes from David Miller:
"Noteworthy changes this time around:
1) Multicast rejoin support for team driver, from Jiri Pirko.
2) Centralize and simplify TCP RTT measurement handling in order to
reduce the impact of bad RTO seeding from SYN/ACKs. Also, when
both timestamps and local RTT measurements are available prefer
the later because there are broken middleware devices which
scramble the timestamp.
From Yuchung Cheng.
3) Add TCP_NOTSENT_LOWAT socket option to limit the amount of kernel
memory consumed to queue up unsend user data. From Eric Dumazet.
4) Add a "physical port ID" abstraction for network devices, from
Jiri Pirko.
5) Add a "suppress" operation to influence fib_rules lookups, from
Stefan Tomanek.
6) Add a networking development FAQ, from Paul Gortmaker.
7) Extend the information provided by tcp_probe and add ipv6 support,
from Daniel Borkmann.
8) Use RCU locking more extensively in openvswitch data paths, from
Pravin B Shelar.
9) Add SCTP support to openvswitch, from Joe Stringer.
10) Add EF10 chip support to SFC driver, from Ben Hutchings.
11) Add new SYNPROXY netfilter target, from Patrick McHardy.
12) Compute a rate approximation for sending in TCP sockets, and use
this to more intelligently coalesce TSO frames. Furthermore, add
a new packet scheduler which takes advantage of this estimate when
available. From Eric Dumazet.
13) Allow AF_PACKET fanouts with random selection, from Daniel
Borkmann.
14) Add ipv6 support to vxlan driver, from Cong Wang"
Resolved conflicts as per discussion.
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1218 commits)
openvswitch: Fix alignment of struct sw_flow_key.
netfilter: Fix build errors with xt_socket.c
tcp: Add missing braces to do_tcp_setsockopt
caif: Add missing braces to multiline if in cfctrl_linkup_request
bnx2x: Add missing braces in bnx2x:bnx2x_link_initialize
vxlan: Fix kernel panic on device delete.
net: mvneta: implement ->ndo_do_ioctl() to support PHY ioctls
net: mvneta: properly disable HW PHY polling and ensure adjust_link() works
icplus: Use netif_running to determine device state
ethernet/arc/arc_emac: Fix huge delays in large file copies
tuntap: orphan frags before trying to set tx timestamp
tuntap: purge socket error queue on detach
qlcnic: use standard NAPI weights
ipv6:introduce function to find route for redirect
bnx2x: VF RSS support - VF side
bnx2x: VF RSS support - PF side
vxlan: Notify drivers for listening UDP port changes
net: usbnet: update addr_assign_type if appropriate
driver/net: enic: update enic maintainers and driver
driver/net: enic: Exposing symbols for Cisco's low latency driver
...
This commit is contained in:
commit
cc998ff881
974 changed files with 56740 additions and 23930 deletions
|
|
@ -245,22 +245,22 @@ fail:
|
|||
int br_netpoll_enable(struct net_bridge_port *p, gfp_t gfp)
|
||||
{
|
||||
struct netpoll *np;
|
||||
int err = 0;
|
||||
int err;
|
||||
|
||||
if (!p->br->dev->npinfo)
|
||||
return 0;
|
||||
|
||||
np = kzalloc(sizeof(*p->np), gfp);
|
||||
err = -ENOMEM;
|
||||
if (!np)
|
||||
goto out;
|
||||
return -ENOMEM;
|
||||
|
||||
err = __netpoll_setup(np, p->dev, gfp);
|
||||
if (err) {
|
||||
kfree(np);
|
||||
goto out;
|
||||
return err;
|
||||
}
|
||||
|
||||
p->np = np;
|
||||
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -363,7 +363,8 @@ int br_add_if(struct net_bridge *br, struct net_device *dev)
|
|||
if (err)
|
||||
goto err2;
|
||||
|
||||
if (br_netpoll_info(br) && ((err = br_netpoll_enable(p, GFP_KERNEL))))
|
||||
err = br_netpoll_enable(p, GFP_KERNEL);
|
||||
if (err)
|
||||
goto err3;
|
||||
|
||||
err = netdev_master_upper_dev_link(dev, br->dev);
|
||||
|
|
@ -382,6 +383,9 @@ int br_add_if(struct net_bridge *br, struct net_device *dev)
|
|||
|
||||
netdev_update_features(br->dev);
|
||||
|
||||
if (br->dev->needed_headroom < dev->needed_headroom)
|
||||
br->dev->needed_headroom = dev->needed_headroom;
|
||||
|
||||
spin_lock_bh(&br->lock);
|
||||
changed_addr = br_stp_recalculate_bridge_id(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include <net/netlink.h>
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
#include <net/ipv6.h>
|
||||
#include <net/addrconf.h>
|
||||
#endif
|
||||
|
||||
#include "br_private.h"
|
||||
|
|
@ -61,7 +62,8 @@ static int br_mdb_fill_info(struct sk_buff *skb, struct netlink_callback *cb,
|
|||
|
||||
for (i = 0; i < mdb->max; i++) {
|
||||
struct net_bridge_mdb_entry *mp;
|
||||
struct net_bridge_port_group *p, **pp;
|
||||
struct net_bridge_port_group *p;
|
||||
struct net_bridge_port_group __rcu **pp;
|
||||
struct net_bridge_port *port;
|
||||
|
||||
hlist_for_each_entry_rcu(mp, &mdb->mhash[i], hlist[mdb->ver]) {
|
||||
|
|
@ -253,7 +255,7 @@ static bool is_valid_mdb_entry(struct br_mdb_entry *entry)
|
|||
return false;
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
} else if (entry->addr.proto == htons(ETH_P_IPV6)) {
|
||||
if (!ipv6_is_transient_multicast(&entry->addr.u.ip6))
|
||||
if (ipv6_addr_is_ll_all_nodes(&entry->addr.u.ip6))
|
||||
return false;
|
||||
#endif
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include <net/ipv6.h>
|
||||
#include <net/mld.h>
|
||||
#include <net/ip6_checksum.h>
|
||||
#include <net/addrconf.h>
|
||||
#endif
|
||||
|
||||
#include "br_private.h"
|
||||
|
|
@ -724,7 +725,7 @@ static int br_ip6_multicast_add_group(struct net_bridge *br,
|
|||
{
|
||||
struct br_ip br_group;
|
||||
|
||||
if (!ipv6_is_transient_multicast(group))
|
||||
if (ipv6_addr_is_ll_all_nodes(group))
|
||||
return 0;
|
||||
|
||||
br_group.u.ip6 = *group;
|
||||
|
|
@ -1255,7 +1256,7 @@ static int br_ip6_multicast_query(struct net_bridge *br,
|
|||
if (!mld2q->mld2q_nsrcs)
|
||||
group = &mld2q->mld2q_mca;
|
||||
|
||||
max_delay = max(msecs_to_jiffies(MLDV2_MRC(ntohs(mld2q->mld2q_mrc))), 1UL);
|
||||
max_delay = max(msecs_to_jiffies(mldv2_mrc(mld2q)), 1UL);
|
||||
}
|
||||
|
||||
br_multicast_query_received(br, port, &br->ip6_querier,
|
||||
|
|
@ -1410,7 +1411,7 @@ static void br_ip6_multicast_leave_group(struct net_bridge *br,
|
|||
&br->ip6_query;
|
||||
|
||||
|
||||
if (!ipv6_is_transient_multicast(group))
|
||||
if (ipv6_addr_is_ll_all_nodes(group))
|
||||
return;
|
||||
|
||||
br_group.u.ip6 = *group;
|
||||
|
|
@ -1547,8 +1548,14 @@ static int br_multicast_ipv6_rcv(struct net_bridge *br,
|
|||
* - MLD has always Router Alert hop-by-hop option
|
||||
* - But we do not support jumbrograms.
|
||||
*/
|
||||
if (ip6h->version != 6 ||
|
||||
ip6h->nexthdr != IPPROTO_HOPOPTS ||
|
||||
if (ip6h->version != 6)
|
||||
return 0;
|
||||
|
||||
/* Prevent flooding this packet if there is no listener present */
|
||||
if (!ipv6_addr_is_ll_all_nodes(&ip6h->daddr))
|
||||
BR_INPUT_SKB_CB(skb)->mrouters_only = 1;
|
||||
|
||||
if (ip6h->nexthdr != IPPROTO_HOPOPTS ||
|
||||
ip6h->payload_len == 0)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -102,6 +102,11 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v
|
|||
case NETDEV_PRE_TYPE_CHANGE:
|
||||
/* Forbid underlaying device to change its type. */
|
||||
return NOTIFY_BAD;
|
||||
|
||||
case NETDEV_RESEND_IGMP:
|
||||
/* Propagate to master device */
|
||||
call_netdevice_notifiers(event, br->dev);
|
||||
break;
|
||||
}
|
||||
|
||||
/* Events that may cause spanning tree to refresh */
|
||||
|
|
|
|||
|
|
@ -352,11 +352,6 @@ extern void br_dev_delete(struct net_device *dev, struct list_head *list);
|
|||
extern netdev_tx_t br_dev_xmit(struct sk_buff *skb,
|
||||
struct net_device *dev);
|
||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||
static inline struct netpoll_info *br_netpoll_info(struct net_bridge *br)
|
||||
{
|
||||
return br->dev->npinfo;
|
||||
}
|
||||
|
||||
static inline void br_netpoll_send_skb(const struct net_bridge_port *p,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
|
|
@ -369,11 +364,6 @@ static inline void br_netpoll_send_skb(const struct net_bridge_port *p,
|
|||
extern int br_netpoll_enable(struct net_bridge_port *p, gfp_t gfp);
|
||||
extern void br_netpoll_disable(struct net_bridge_port *p);
|
||||
#else
|
||||
static inline struct netpoll_info *br_netpoll_info(struct net_bridge *br)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void br_netpoll_send_skb(const struct net_bridge_port *p,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
|
|
@ -494,7 +484,7 @@ extern void br_multicast_free_pg(struct rcu_head *head);
|
|||
extern struct net_bridge_port_group *br_multicast_new_port_group(
|
||||
struct net_bridge_port *port,
|
||||
struct br_ip *group,
|
||||
struct net_bridge_port_group *next,
|
||||
struct net_bridge_port_group __rcu *next,
|
||||
unsigned char state);
|
||||
extern void br_mdb_init(void);
|
||||
extern void br_mdb_uninit(void);
|
||||
|
|
@ -504,16 +494,6 @@ extern void br_mdb_notify(struct net_device *dev, struct net_bridge_port *port,
|
|||
#define mlock_dereference(X, br) \
|
||||
rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock))
|
||||
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
#include <net/addrconf.h>
|
||||
static inline int ipv6_is_transient_multicast(const struct in6_addr *addr)
|
||||
{
|
||||
if (ipv6_addr_is_multicast(addr) && IPV6_ADDR_MC_FLAG_TRANSIENT(addr))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static inline bool br_multicast_is_router(struct net_bridge *br)
|
||||
{
|
||||
return br->multicast_router == 2 ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue