summaryrefslogtreecommitdiff
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorIgor Romanov <igor.romanov@oktetlabs.ru>2019-02-07 16:29:22 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-02-08 11:35:41 +0100
commit70c9ab84b299de2c954039b33e38fc646f787180 (patch)
treebc457d4e6d98d1814fe80aef7b0ec64a511617da /drivers/net/sfc
parent217688651d7085c1f0465838e279d5142423bc3e (diff)
downloaddpdk-next-eventdev-70c9ab84b299de2c954039b33e38fc646f787180.zip
dpdk-next-eventdev-70c9ab84b299de2c954039b33e38fc646f787180.tar.gz
dpdk-next-eventdev-70c9ab84b299de2c954039b33e38fc646f787180.tar.xz
net/sfc/base: make NIC pointer const in NIC config get
The change is needed for the functions that accept const efx_nic_t pointer and have to get efx_nic_cfg_t. Signed-off-by: Igor Romanov <igor.romanov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/base/efx.h2
-rw-r--r--drivers/net/sfc/base/efx_nic.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/base/efx.h b/drivers/net/sfc/base/efx.h
index d8914aa..8aa03b5 100644
--- a/drivers/net/sfc/base/efx.h
+++ b/drivers/net/sfc/base/efx.h
@@ -1409,7 +1409,7 @@ typedef struct efx_nic_cfg_s {
extern const efx_nic_cfg_t *
efx_nic_cfg_get(
- __in efx_nic_t *enp);
+ __in const efx_nic_t *enp);
/* RxDPCPU firmware id values by which FW variant can be identified */
#define EFX_RXDP_FULL_FEATURED_FW_ID 0x0
diff --git a/drivers/net/sfc/base/efx_nic.c b/drivers/net/sfc/base/efx_nic.c
index 52108a5..3ec5cbc 100644
--- a/drivers/net/sfc/base/efx_nic.c
+++ b/drivers/net/sfc/base/efx_nic.c
@@ -595,7 +595,7 @@ fail1:
const efx_nic_cfg_t *
efx_nic_cfg_get(
- __in efx_nic_t *enp)
+ __in const efx_nic_t *enp)
{
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);