Currently mlx5_eswitch_rep stores same hw ID for all representors. However it is never used from this structure. It is always used from mlx5_vport. Hence, remove unused field.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -44,7 +44,6 @@ struct mlx5_eswitch_rep_data { · 43 unmodified lines | ||
| 44 | 44 | struct mlx5_eswitch_rep { |
| 45 | 45 | struct mlx5_eswitch_rep_data rep_data[NUM_REP_TYPES]; |
| 46 | 46 | u16 vport; |
| 47 | − u8 hw_id[ETH_ALEN]; | |
| 48 | 47 | u16 vlan; |
| 49 | 48 | /* Only IB rep is using vport_index */ |
| 50 | 49 | u16 vport_index; |