OSDN Git Service

net/mlx5e: Make the log friendly when decapsulation offload not supported
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Wed, 27 Feb 2019 15:31:16 +0000 (07:31 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 5 Apr 2019 21:10:33 +0000 (14:10 -0700)
commit1b18b781516dc5d7f6680a2e88b3df32926c25f6
tree13e42144deb893157212a82b6bca2cdc28b19437
parenteda99e11a097fba938880f1304f1d937d2b49f3a
net/mlx5e: Make the log friendly when decapsulation offload not supported

If we try to offload decapsulation actions to VFs hw, we get the log [1].
It's not friendly, because the kind of net device is null, and we don't
know what '0' means.

[1] "mlx5_core 0000:05:01.2 vf_0: decapsulation offload is not supported for  net device (0)"

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c