18 #define VIRTCHNL_VERSION_MAJOR 1 19 #define VIRTCHNL_VERSION_MINOR 1 22 #define AVFINT_DYN_CTLN(x) (0x00003800 + (0x4 * x)) 23 #define AVFINT_ICR0 0x00004800 24 #define AVFINT_ICR0_ENA1 0x00005000 25 #define AVFINT_DYN_CTL0 0x00005C00 26 #define AVF_ARQBAH 0x00006000 27 #define AVF_ATQH 0x00006400 28 #define AVF_ATQLEN 0x00006800 29 #define AVF_ARQBAL 0x00006C00 30 #define AVF_ARQT 0x00007000 31 #define AVF_ARQH 0x00007400 32 #define AVF_ATQBAH 0x00007800 33 #define AVF_ATQBAL 0x00007C00 34 #define AVF_ARQLEN 0x00008000 35 #define AVF_ATQT 0x00008400 36 #define AVFGEN_RSTAT 0x00008800 37 #define AVF_QTX_TAIL(q) (0x00000000 + (0x4 * q)) 38 #define AVF_QRX_TAIL(q) (0x00002000 + (0x4 * q)) 40 #define AVF_AQ_F_DD (1 << 0) 41 #define AVF_AQ_F_CMP (1 << 1) 42 #define AVF_AQ_F_ERR (1 << 2) 43 #define AVF_AQ_F_VFE (1 << 3) 44 #define AVF_AQ_F_LB (1 << 9) 45 #define AVF_AQ_F_RD (1 << 10) 46 #define AVF_AQ_F_VFC (1 << 11) 47 #define AVF_AQ_F_BUF (1 << 12) 48 #define AVF_AQ_F_SI (1 << 13) 49 #define AVF_AQ_F_EI (1 << 14) 50 #define AVF_AQ_F_FE (1 << 15) 53 #define foreach_virtchnl_op \ 57 _(3, GET_VF_RESOURCES) \ 58 _(4, CONFIG_TX_QUEUE) \ 59 _(5, CONFIG_RX_QUEUE) \ 60 _(6, CONFIG_VSI_QUEUES) \ 61 _(7, CONFIG_IRQ_MAP) \ 63 _(9, DISABLE_QUEUES) \ 68 _(14, CONFIG_PROMISCUOUS_MODE) \ 75 _(21, CONFIG_IWARP_IRQ_MAP) \ 76 _(22, RELEASE_IWARP_IRQ_MAP) \ 77 _(23, CONFIG_RSS_KEY) \ 78 _(24, CONFIG_RSS_LUT) \ 79 _(25, GET_RSS_HENA_CAPS) \ 81 _(27, ENABLE_VLAN_STRIPPING) \ 82 _(28, DISABLE_VLAN_STRIPPING) \ 87 #define _(v,n) VIRTCHNL_OP_##n = v, 103 #define foreach_avf_vf_cap_flag \ 105 _( 1, IWARP, "iwarp") \ 106 _( 2, RSVD, "rsvd") \ 107 _( 3, RSS_AQ, "rss-aq") \ 108 _( 4, RSS_REG, "rss-reg") \ 109 _( 5, WB_ON_ITR, "wb-on-itr") \ 110 _( 6, REQ_QUEUES, "req-queues") \ 111 _(16, VLAN, "vlan") \ 112 _(17, RX_POLLING, "rx-polling") \ 113 _(18, RSS_PCTYPE_V2, "rss-pctype-v2") \ 114 _(19, RSS_PF, "rss-pf") \ 115 _(20, ENCAP, "encap") \ 116 _(21, ENCAP_CSUM, "encap-csum") \ 117 _(22, RX_ENCAP_CSUM, "rx-encap-csum") 121 #define _(a, b, c) VIRTCHNL_VF_OFFLOAD_##b = (1 << a), 138 u8 default_mac_addr[6];
161 #define foreach_virtchnl_link_speed \ 162 _(1, 100MB, "100 Mbps") \ 163 _(2, 1GB, "1 Gbps") \ 164 _(3, 10GB, "10 Gbps") \ 165 _(4, 40GB, "40 Gbps") \ 166 _(5, 20GB, "20 Gbps") \ 167 _(6, 25GB, "25 Gbps") 172 #define _(a,b,c) VIRTCHNL_LINK_SPEED_##b = (1 << a), 316 #define foreach_virtchnl_eth_stats \ 322 _(rx_unknown_protocol)\
u8 pad[3]
log2 (size of the packing page block)
#define foreach_avf_vf_cap_flag
virtchnl_vsi_type_t vsi_type
#define foreach_virtchnl_eth_stats
virtchnl_link_speed_t link_speed
virtchnl_status_code_t v_retval
STATIC_ASSERT_SIZEOF(virtchnl_pf_event_t, 16)
#define foreach_virtchnl_link_speed
virtchnl_event_codes_t event
#define foreach_virtchnl_op