mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 11:43:54 +08:00
Merge branch 'mlx5-build-fixes'
Saeed Mahameed says: ==================== Mellanox, mlx5 build fixes I know net-next is closed but these patches are fixing some compiler build and warnings issues people have been complaining about. I hope it is not too late, but in case it is a lot of trouble for you, I guess they can wait. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
08d14c49ac
@ -81,7 +81,6 @@ mlx5e_ktls_type_check(struct mlx5_core_dev *mdev,
|
|||||||
struct tls_crypto_info *crypto_info) { return false; }
|
struct tls_crypto_info *crypto_info) { return false; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_MLX5_FPGA_TLS
|
|
||||||
enum {
|
enum {
|
||||||
MLX5_ACCEL_TLS_TX = BIT(0),
|
MLX5_ACCEL_TLS_TX = BIT(0),
|
||||||
MLX5_ACCEL_TLS_RX = BIT(1),
|
MLX5_ACCEL_TLS_RX = BIT(1),
|
||||||
@ -103,6 +102,7 @@ struct mlx5_ifc_tls_flow_bits {
|
|||||||
u8 reserved_at_2[0x1e];
|
u8 reserved_at_2[0x1e];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_MLX5_FPGA_TLS
|
||||||
int mlx5_accel_tls_add_flow(struct mlx5_core_dev *mdev, void *flow,
|
int mlx5_accel_tls_add_flow(struct mlx5_core_dev *mdev, void *flow,
|
||||||
struct tls_crypto_info *crypto_info,
|
struct tls_crypto_info *crypto_info,
|
||||||
u32 start_offload_tcp_sn, u32 *p_swid,
|
u32 start_offload_tcp_sn, u32 *p_swid,
|
||||||
|
@ -3390,10 +3390,9 @@ static int mlx5e_modify_channels_vsd(struct mlx5e_channels *chs, bool vsd)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mlx5e_setup_tc_mqprio(struct net_device *netdev,
|
static int mlx5e_setup_tc_mqprio(struct mlx5e_priv *priv,
|
||||||
struct tc_mqprio_qopt *mqprio)
|
struct tc_mqprio_qopt *mqprio)
|
||||||
{
|
{
|
||||||
struct mlx5e_priv *priv = netdev_priv(netdev);
|
|
||||||
struct mlx5e_channels new_channels = {};
|
struct mlx5e_channels new_channels = {};
|
||||||
u8 tc = mqprio->num_tc;
|
u8 tc = mqprio->num_tc;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
@ -3475,7 +3474,7 @@ static int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type,
|
|||||||
priv, priv, true);
|
priv, priv, true);
|
||||||
#endif
|
#endif
|
||||||
case TC_SETUP_QDISC_MQPRIO:
|
case TC_SETUP_QDISC_MQPRIO:
|
||||||
return mlx5e_setup_tc_mqprio(dev, type_data);
|
return mlx5e_setup_tc_mqprio(priv, type_data);
|
||||||
default:
|
default:
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
@ -1785,8 +1785,8 @@ static int esw_vport_add_ingress_acl_modify_metadata(struct mlx5_eswitch *esw,
|
|||||||
struct mlx5_vport *vport)
|
struct mlx5_vport *vport)
|
||||||
{
|
{
|
||||||
u8 action[MLX5_UN_SZ_BYTES(set_action_in_add_action_in_auto)] = {};
|
u8 action[MLX5_UN_SZ_BYTES(set_action_in_add_action_in_auto)] = {};
|
||||||
|
static const struct mlx5_flow_spec spec = {};
|
||||||
struct mlx5_flow_act flow_act = {};
|
struct mlx5_flow_act flow_act = {};
|
||||||
struct mlx5_flow_spec spec = {};
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
MLX5_SET(set_action_in, action, action_type, MLX5_ACTION_TYPE_SET);
|
MLX5_SET(set_action_in, action, action_type, MLX5_ACTION_TYPE_SET);
|
||||||
|
Loading…
Reference in New Issue
Block a user