|
@@ -1188,6 +1188,7 @@ s32 ixgbe_set_rar_generic(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
|
|
|
IXGBE_WRITE_REG(hw, IXGBE_RAH(index), rar_high);
|
|
|
} else {
|
|
|
hw_dbg(hw, "RAR index %d is out of range.\n", index);
|
|
|
+ return IXGBE_ERR_RAR_INDEX;
|
|
|
}
|
|
|
|
|
|
return 0;
|
|
@@ -1219,6 +1220,7 @@ s32 ixgbe_clear_rar_generic(struct ixgbe_hw *hw, u32 index)
|
|
|
IXGBE_WRITE_REG(hw, IXGBE_RAH(index), rar_high);
|
|
|
} else {
|
|
|
hw_dbg(hw, "RAR index %d is out of range.\n", index);
|
|
|
+ return IXGBE_ERR_RAR_INDEX;
|
|
|
}
|
|
|
|
|
|
/* clear VMDq pool/queue selection for this RAR */
|