diff options
author | David S. Miller <davem@davemloft.net> | 2017-10-30 01:10:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-30 08:09:24 -0400 |
commit | e1ea2f9856b765a2eaabb403a6751f70efc9ba4c (patch) | |
tree | 771f0f96fdab1b27757730e96d911c73f5499ee4 /net/dsa/dsa2.c | |
parent | aad93c70b9a3b80dbc383a31e77a119f69bdd856 (diff) | |
parent | 0b07194bb55ed836c2cc7c22e866b87a14681984 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several conflicts here.
NFP driver bug fix adding nfp_netdev_is_nfp_repr() check to
nfp_fl_output() needed some adjustments because the code block is in
an else block now.
Parallel additions to net/pkt_cls.h and net/sch_generic.h
A bug fix in __tcp_retransmit_skb() conflicted with some of
the rbtree changes in net-next.
The tc action RCU callback fixes in 'net' had some overlap with some
of the recent tcf_block reworking.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa2.c')
-rw-r--r-- | net/dsa/dsa2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index de91c48b6806..4d1ccf87c59c 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c | |||
@@ -486,14 +486,15 @@ static int dsa_cpu_parse(struct dsa_port *port, u32 index, | |||
486 | if (!ethernet) | 486 | if (!ethernet) |
487 | return -EINVAL; | 487 | return -EINVAL; |
488 | ethernet_dev = of_find_net_device_by_node(ethernet); | 488 | ethernet_dev = of_find_net_device_by_node(ethernet); |
489 | if (!ethernet_dev) | ||
490 | return -EPROBE_DEFER; | ||
489 | } else { | 491 | } else { |
490 | ethernet_dev = dsa_dev_to_net_device(ds->cd->netdev[index]); | 492 | ethernet_dev = dsa_dev_to_net_device(ds->cd->netdev[index]); |
493 | if (!ethernet_dev) | ||
494 | return -EPROBE_DEFER; | ||
491 | dev_put(ethernet_dev); | 495 | dev_put(ethernet_dev); |
492 | } | 496 | } |
493 | 497 | ||
494 | if (!ethernet_dev) | ||
495 | return -EPROBE_DEFER; | ||
496 | |||
497 | if (!dst->cpu_dp) { | 498 | if (!dst->cpu_dp) { |
498 | dst->cpu_dp = port; | 499 | dst->cpu_dp = port; |
499 | dst->cpu_dp->master = ethernet_dev; | 500 | dst->cpu_dp->master = ethernet_dev; |