diff options
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c index 3e993d5a1994..f523f0204f1f 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | |||
@@ -711,6 +711,7 @@ static int mlx4_en_ethtool_add_mac_rule_by_ipv4(struct mlx4_en_priv *priv, | |||
711 | struct mlx4_spec_list *spec_l2, | 711 | struct mlx4_spec_list *spec_l2, |
712 | __be32 ipv4_dst) | 712 | __be32 ipv4_dst) |
713 | { | 713 | { |
714 | #ifdef CONFIG_INET | ||
714 | __be64 be_mac = 0; | 715 | __be64 be_mac = 0; |
715 | unsigned char mac[ETH_ALEN]; | 716 | unsigned char mac[ETH_ALEN]; |
716 | 717 | ||
@@ -726,6 +727,9 @@ static int mlx4_en_ethtool_add_mac_rule_by_ipv4(struct mlx4_en_priv *priv, | |||
726 | } | 727 | } |
727 | 728 | ||
728 | return mlx4_en_ethtool_add_mac_rule(cmd, rule_list_h, spec_l2, &mac[0]); | 729 | return mlx4_en_ethtool_add_mac_rule(cmd, rule_list_h, spec_l2, &mac[0]); |
730 | #else | ||
731 | return -EINVAL; | ||
732 | #endif | ||
729 | } | 733 | } |
730 | 734 | ||
731 | static int add_ip_rule(struct mlx4_en_priv *priv, | 735 | static int add_ip_rule(struct mlx4_en_priv *priv, |