Lines Matching refs:msgbuf

438 ixgbe_vf_reset(struct rte_eth_dev *dev, uint16_t vf, uint32_t *msgbuf)  in ixgbe_vf_reset()  argument
445 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in ixgbe_vf_reset()
455 msgbuf[0] = IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK; in ixgbe_vf_reset()
461 msgbuf[3] = hw->mac.mc_filter_type; in ixgbe_vf_reset()
462 ixgbe_write_mbx(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN, vf); in ixgbe_vf_reset()
468 ixgbe_vf_set_mac_addr(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_vf_set_mac_addr() argument
474 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in ixgbe_vf_set_mac_addr()
485 ixgbe_vf_set_multicast(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_vf_set_multicast() argument
490 int nb_entries = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> in ixgbe_vf_set_multicast()
492 uint16_t *hash_list = (uint16_t *)&msgbuf[1]; in ixgbe_vf_set_multicast()
536 ixgbe_vf_set_vlan(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_vf_set_vlan() argument
543 add = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) in ixgbe_vf_set_vlan()
545 vid = (msgbuf[1] & IXGBE_VLVF_VLANID_MASK); in ixgbe_vf_set_vlan()
555 ixgbe_set_vf_lpe(struct rte_eth_dev *dev, __rte_unused uint32_t vf, uint32_t *msgbuf) in ixgbe_set_vf_lpe() argument
558 uint32_t new_mtu = msgbuf[1]; in ixgbe_set_vf_lpe()
597 ixgbe_negotiate_vf_api(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_negotiate_vf_api() argument
599 uint32_t api_version = msgbuf[1]; in ixgbe_negotiate_vf_api()
621 ixgbe_get_vf_queues(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_get_vf_queues() argument
651 msgbuf[IXGBE_VF_RX_QUEUES] = RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool; in ixgbe_get_vf_queues()
652 msgbuf[IXGBE_VF_TX_QUEUES] = RTE_ETH_DEV_SRIOV(dev).nb_q_per_pool; in ixgbe_get_vf_queues()
655 msgbuf[IXGBE_VF_DEF_QUEUE] = default_q; in ixgbe_get_vf_queues()
701 msgbuf[IXGBE_VF_TRANS_VLAN] = num_tcs; in ixgbe_get_vf_queues()
707 ixgbe_set_vf_mc_promisc(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_set_vf_mc_promisc() argument
712 int xcast_mode = msgbuf[1]; /* msgbuf contains the flag to enable */ in ixgbe_set_vf_mc_promisc()
772 msgbuf[1] = xcast_mode; in ixgbe_set_vf_mc_promisc()
778 ixgbe_set_vf_macvlan_msg(struct rte_eth_dev *dev, uint32_t vf, uint32_t *msgbuf) in ixgbe_set_vf_macvlan_msg() argument
783 uint8_t *new_mac = (uint8_t *)(&msgbuf[1]); in ixgbe_set_vf_macvlan_msg()
784 int index = (msgbuf[0] & IXGBE_VT_MSGINFO_MASK) >> in ixgbe_set_vf_macvlan_msg()
812 uint32_t msgbuf[IXGBE_VFMAILBOX_SIZE]; in ixgbe_rcv_msg_from_vf() local
819 retval = ixgbe_read_mbx(hw, msgbuf, mbx_size, vf); in ixgbe_rcv_msg_from_vf()
826 if (msgbuf[0] & (IXGBE_VT_MSGTYPE_ACK | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_rcv_msg_from_vf()
838 ret_param.msg_type = msgbuf[0] & 0xFFFF; in ixgbe_rcv_msg_from_vf()
839 ret_param.msg = (void *)msgbuf; in ixgbe_rcv_msg_from_vf()
842 if (msgbuf[0] == IXGBE_VF_RESET) { in ixgbe_rcv_msg_from_vf()
843 int ret = ixgbe_vf_reset(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
865 switch ((msgbuf[0] & 0xFFFF)) { in ixgbe_rcv_msg_from_vf()
868 retval = ixgbe_vf_set_mac_addr(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
872 retval = ixgbe_vf_set_multicast(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
876 retval = ixgbe_set_vf_lpe(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
880 retval = ixgbe_vf_set_vlan(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
883 retval = ixgbe_negotiate_vf_api(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
886 retval = ixgbe_get_vf_queues(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
891 retval = ixgbe_set_vf_mc_promisc(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
895 retval = ixgbe_set_vf_macvlan_msg(dev, vf, msgbuf); in ixgbe_rcv_msg_from_vf()
898 PMD_DRV_LOG(DEBUG, "Unhandled Msg %8.8x", (unsigned)msgbuf[0]); in ixgbe_rcv_msg_from_vf()
905 msgbuf[0] |= IXGBE_VT_MSGTYPE_NACK; in ixgbe_rcv_msg_from_vf()
907 msgbuf[0] |= IXGBE_VT_MSGTYPE_ACK; in ixgbe_rcv_msg_from_vf()
909 msgbuf[0] |= IXGBE_VT_MSGTYPE_CTS; in ixgbe_rcv_msg_from_vf()
911 ixgbe_write_mbx(hw, msgbuf, msg_size, vf); in ixgbe_rcv_msg_from_vf()