Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
A set of overlapping changes in macvlan and the rocker driver, nothing serious. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -4172,7 +4172,7 @@ found:
|
||||
* recipients
|
||||
*/
|
||||
if (is_mc_recip) {
|
||||
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_IN_LEN);
|
||||
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_EXT_IN_LEN);
|
||||
unsigned int depth, i;
|
||||
|
||||
memset(inbuf, 0, sizeof(inbuf));
|
||||
@@ -4320,7 +4320,7 @@ static int efx_ef10_filter_remove_internal(struct efx_nic *efx,
|
||||
efx_ef10_filter_set_entry(table, filter_idx, NULL, 0);
|
||||
} else {
|
||||
efx_mcdi_display_error(efx, MC_CMD_FILTER_OP,
|
||||
MC_CMD_FILTER_OP_IN_LEN,
|
||||
MC_CMD_FILTER_OP_EXT_IN_LEN,
|
||||
NULL, 0, rc);
|
||||
}
|
||||
}
|
||||
@@ -4453,7 +4453,7 @@ static s32 efx_ef10_filter_rfs_insert(struct efx_nic *efx,
|
||||
struct efx_filter_spec *spec)
|
||||
{
|
||||
struct efx_ef10_filter_table *table = efx->filter_state;
|
||||
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_IN_LEN);
|
||||
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_EXT_IN_LEN);
|
||||
struct efx_filter_spec *saved_spec;
|
||||
unsigned int hash, i, depth = 1;
|
||||
bool replacing = false;
|
||||
@@ -4940,7 +4940,7 @@ not_restored:
|
||||
static void efx_ef10_filter_table_remove(struct efx_nic *efx)
|
||||
{
|
||||
struct efx_ef10_filter_table *table = efx->filter_state;
|
||||
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_IN_LEN);
|
||||
MCDI_DECLARE_BUF(inbuf, MC_CMD_FILTER_OP_EXT_IN_LEN);
|
||||
struct efx_filter_spec *spec;
|
||||
unsigned int filter_idx;
|
||||
int rc;
|
||||
@@ -5105,6 +5105,7 @@ static int efx_ef10_filter_insert_addr_list(struct efx_nic *efx,
|
||||
|
||||
/* Insert/renew filters */
|
||||
for (i = 0; i < addr_count; i++) {
|
||||
EFX_WARN_ON_PARANOID(ids[i] != EFX_EF10_FILTER_ID_INVALID);
|
||||
efx_filter_init_rx(&spec, EFX_FILTER_PRI_AUTO, filter_flags, 0);
|
||||
efx_filter_set_eth_local(&spec, vlan->vid, addr_list[i].addr);
|
||||
rc = efx_ef10_filter_insert(efx, &spec, true);
|
||||
@@ -5122,11 +5123,11 @@ static int efx_ef10_filter_insert_addr_list(struct efx_nic *efx,
|
||||
}
|
||||
return rc;
|
||||
} else {
|
||||
/* mark as not inserted, and carry on */
|
||||
rc = EFX_EF10_FILTER_ID_INVALID;
|
||||
/* keep invalid ID, and carry on */
|
||||
}
|
||||
} else {
|
||||
ids[i] = efx_ef10_filter_get_unsafe_id(rc);
|
||||
}
|
||||
ids[i] = efx_ef10_filter_get_unsafe_id(rc);
|
||||
}
|
||||
|
||||
if (multicast && rollback) {
|
||||
|
Reference in New Issue
Block a user