diff options
author | Vijaya Mohan Guvva <vijaya.guvva@cavium.com> | 2017-11-01 16:19:49 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 17:04:06 +0900 |
commit | e20f469660ad526fcd9bf865e30ee491ae4e4a86 (patch) | |
tree | ee67df0bb1489779995c3cc4dc3636f6388a382b /drivers/net/ethernet/cavium/liquidio/liquidio_common.h | |
parent | 74b200d566f1d6367ffba7c467dfd2626779f79f (diff) | |
download | linux-e20f469660ad526fcd9bf865e30ee491ae4e4a86.tar.bz2 |
liquidio: synchronize VF representor names with NIC firmware
LiquidIO firmware supports a vswitch that needs to know the names of the
VF representors in the host to maintain compatibility for direct
programming using external Openflow agents. So, for each VF representor,
send its name to the firmware when it gets registered and when its name
changes.
Signed-off-by: Vijaya Mohan Guvva <vijaya.guvva@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/liquidio_common.h')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h index 441cc78faff1..3bcdda85e360 100644 --- a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h +++ b/drivers/net/ethernet/cavium/liquidio/liquidio_common.h @@ -928,7 +928,8 @@ enum lio_vf_rep_req_type { LIO_VF_REP_REQ_NONE, LIO_VF_REP_REQ_STATE, LIO_VF_REP_REQ_MTU, - LIO_VF_REP_REQ_STATS + LIO_VF_REP_REQ_STATS, + LIO_VF_REP_REQ_DEVNAME }; enum { @@ -936,12 +937,17 @@ enum { LIO_VF_REP_STATE_UP }; +#define LIO_IF_NAME_SIZE 16 struct lio_vf_rep_req { u8 req_type; u8 ifidx; u8 rsvd[6]; union { + struct lio_vf_rep_name { + char name[LIO_IF_NAME_SIZE]; + } rep_name; + struct lio_vf_rep_mtu { u32 mtu; u32 rsvd; |