Commit b8744cab authored by Harvey Harrison's avatar Harvey Harrison Committed by David S. Miller
Browse files

vmxnet3: remove unnecessary byteswapping in BAR writing macros

readl/writel swap to little-endian internally.
Signed-off-by: default avatarHarvey Harrison <>
Signed-off-by: default avatarDavid S. Miller <>
parent 870be392
......@@ -330,14 +330,14 @@ struct vmxnet3_adapter {
#define VMXNET3_WRITE_BAR0_REG(adapter, reg, val) \
writel(cpu_to_le32(val), (adapter)->hw_addr0 + (reg))
writel((val), (adapter)->hw_addr0 + (reg))
#define VMXNET3_READ_BAR0_REG(adapter, reg) \
le32_to_cpu(readl((adapter)->hw_addr0 + (reg)))
readl((adapter)->hw_addr0 + (reg))
#define VMXNET3_WRITE_BAR1_REG(adapter, reg, val) \
writel(cpu_to_le32(val), (adapter)->hw_addr1 + (reg))
writel((val), (adapter)->hw_addr1 + (reg))
#define VMXNET3_READ_BAR1_REG(adapter, reg) \
le32_to_cpu(readl((adapter)->hw_addr1 + (reg)))
readl((adapter)->hw_addr1 + (reg))
#define VMXNET3_RX_ALLOC_THRESHOLD(rq, ring_idx, adapter) \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment