Merge branch 'net-smc-extent-buffer-mapping-and-port-handling'
authorDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 23:20:05 +0000 (16:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 May 2020 00:02:12 +0000 (17:02 -0700)
Karsten Graul says:

====================
net/smc: extent buffer mapping and port handling

Add functionality to map/unmap and register/unregister memory buffers for
specific SMC-R links and for the whole link group. Prepare LLC layer messages
for the support of multiple links and extent the processing of adapter events.
And add further small preparations needed for the SMC-R failover support.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
1  2 
drivers/net/ethernet/freescale/enetc/enetc_qos.c

index 30fca29b27396298c16e00bdce104693b8f8cbd2,30fca29b27396298c16e00bdce104693b8f8cbd2..48e589e9d0f7c80ce238aab67de153bdf48291cd
@@@ -1016,6 -1016,6 +1016,7 @@@ static int enetc_psfp_parse_clsflower(s
                    !is_zero_ether_addr(match.mask->src)) {
                        NL_SET_ERR_MSG_MOD(extack,
                                           "Cannot match on both source and destination MAC");
++                      err = EINVAL;
                        goto free_filter;
                }
  
                        if (!is_broadcast_ether_addr(match.mask->dst)) {
                                NL_SET_ERR_MSG_MOD(extack,
                                                   "Masked matching on destination MAC not supported");
++                              err = EINVAL;
                                goto free_filter;
                        }
                        ether_addr_copy(filter->sid.dst_mac, match.key->dst);
                        if (!is_broadcast_ether_addr(match.mask->src)) {
                                NL_SET_ERR_MSG_MOD(extack,
                                                   "Masked matching on source MAC not supported");
++                              err = EINVAL;
                                goto free_filter;
                        }
                        ether_addr_copy(filter->sid.src_mac, match.key->src);
                }
        } else {
                NL_SET_ERR_MSG_MOD(extack, "Unsupported, must include ETH_ADDRS");
++              err = EINVAL;
                goto free_filter;
        }