mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
mlx5-fixes-2019-11-06
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGhZs6bAKwk/OTgTpSD+KveBX+j4FAl3DQ0sACgkQSD+KveBX +j4nKgf/XnUZGR4PHGcEfalc/p67J7jmi7SN5Xuts8uyUTgqMGni/SkWRl+S1mQy 8dl5kZK/JxBhAzzlVIcXpcmkfeXydcrm1NHMPCOMsnUrAWAEP0lE1lfLBkX1zWPi OHb3+nziJHc0s4AI/Haca7JOj8HjBSOPpv3Udg6f53leizo31pK2FSiBASc5bRoX EUNMD3eFAap7fjBMVLzO/JeQXxgjaqb9qU3AKopy34cg+AInZ+ZH2S++aoT7RG3J MCPOnrSxLmhA4BUu5I81vfgFNxxPP65vI7NPIhSMY7+pOQJNPIc1p08XvIpQ9X2o 5o/rQ9tVxq2NZqcMB+b6tiHVFYu7Kw== =OmLZ -----END PGP SIGNATURE----- Merge tag 'mlx5-fixes-2019-11-06' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux Saeed Mahamees says: ==================== Mellanox, mlx5 fixes 2019-11-06 This series introduces some fixes to mlx5 driver. Please pull and let me know if there is any problem. No -stable this time. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
c78806f31f
@ -1079,7 +1079,7 @@ static int esw_create_offloads_fdb_tables(struct mlx5_eswitch *esw, int nvports)
|
||||
MLX5_CAP_GEN(dev, max_flow_counter_15_0);
|
||||
fdb_max = 1 << MLX5_CAP_ESW_FLOWTABLE_FDB(dev, log_max_ft_size);
|
||||
|
||||
esw_debug(dev, "Create offloads FDB table, min (max esw size(2^%d), max counters(%d), groups(%d), max flow table size(2^%d))\n",
|
||||
esw_debug(dev, "Create offloads FDB table, min (max esw size(2^%d), max counters(%d), groups(%d), max flow table size(%d))\n",
|
||||
MLX5_CAP_ESW_FLOWTABLE_FDB(dev, log_max_ft_size),
|
||||
max_flow_counter, ESW_OFFLOADS_NUM_GROUPS,
|
||||
fdb_max);
|
||||
|
@ -183,7 +183,8 @@ static bool mlx5_eswitch_offload_is_uplink_port(const struct mlx5_eswitch *esw,
|
||||
u32 port_mask, port_value;
|
||||
|
||||
if (MLX5_CAP_ESW_FLOWTABLE(esw->dev, flow_source))
|
||||
return spec->flow_context.flow_source == MLX5_VPORT_UPLINK;
|
||||
return spec->flow_context.flow_source ==
|
||||
MLX5_FLOW_CONTEXT_FLOW_SOURCE_UPLINK;
|
||||
|
||||
port_mask = MLX5_GET(fte_match_param, spec->match_criteria,
|
||||
misc_parameters.source_port);
|
||||
|
@ -1577,6 +1577,7 @@ int mlx5dr_action_destroy(struct mlx5dr_action *action)
|
||||
break;
|
||||
case DR_ACTION_TYP_MODIFY_HDR:
|
||||
mlx5dr_icm_free_chunk(action->rewrite.chunk);
|
||||
kfree(action->rewrite.data);
|
||||
refcount_dec(&action->rewrite.dmn->refcount);
|
||||
break;
|
||||
default:
|
||||
|
@ -1096,6 +1096,8 @@ dr_rule_create_rule_nic(struct mlx5dr_rule *rule,
|
||||
if (htbl)
|
||||
mlx5dr_htbl_put(htbl);
|
||||
|
||||
kfree(hw_ste_arr);
|
||||
|
||||
return 0;
|
||||
|
||||
free_ste:
|
||||
|
Loading…
Reference in New Issue
Block a user