* ixgbe_set_vfta_vf - Set/Unset vlan filter table address * @hw: pointer to the HW structure * @vlan: 12 bit VLAN ID * @vind: unused by VF drivers * @vlan_on: if true then set bit, else clear bit * @vlvf_bypass: boolean flag indicating updating default pool is okay * * Turn on/off specified VLAN in the VLAN filter table. **/
| 434 | * Turn on/off specified VLAN in the VLAN filter table. |
| 435 | **/ |
| 436 | s32 ixgbe_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind, |
| 437 | bool vlan_on, bool vlvf_bypass) |
| 438 | { |
| 439 | u32 msgbuf[2]; |
| 440 | s32 ret_val; |
| 441 | UNREFERENCED_2PARAMETER(vind, vlvf_bypass); |
| 442 | |
| 443 | msgbuf[0] = IXGBE_VF_SET_VLAN; |
| 444 | msgbuf[1] = vlan; |
| 445 | /* Setting the 8 bit field MSG INFO to TRUE indicates "add" */ |
| 446 | msgbuf[0] |= vlan_on << IXGBE_VT_MSGINFO_SHIFT; |
| 447 | |
| 448 | ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, 2); |
| 449 | if (!ret_val && (msgbuf[0] & IXGBE_VT_MSGTYPE_ACK)) |
| 450 | return IXGBE_SUCCESS; |
| 451 | |
| 452 | return ret_val | (msgbuf[0] & IXGBE_VT_MSGTYPE_NACK); |
| 453 | } |
| 454 | |
| 455 | /** |
| 456 | * ixgbe_get_num_of_tx_queues_vf - Get number of TX queues |
nothing calls this directly
no test coverage detected