summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorEric Dumazet2014-10-05 11:35:09 +0200
committerDavid S. Miller2014-10-06 07:04:15 +0200
commit7dfa4b414d4eec8da56e44fb2b4aea3e549b092f (patch)
treeb8c45159b7ce66d1efefed6bb59d8ba257f2d547 /include/linux/mlx4
parentnet: sched: avoid costly atomic operation in fq_dequeue() (diff)
downloadkernel-qcow2-linux-7dfa4b414d4eec8da56e44fb2b4aea3e549b092f.tar.gz
kernel-qcow2-linux-7dfa4b414d4eec8da56e44fb2b4aea3e549b092f.tar.xz
kernel-qcow2-linux-7dfa4b414d4eec8da56e44fb2b4aea3e549b092f.zip
net/mlx4_en: Code cleanups in tx path
- Remove unused variable ring->poll_cnt - No need to set some fields if using blueflame - Add missing const's - Use unlikely - Remove unneeded new line - Make some comments more precise - struct mlx4_bf @offset field reduced to unsigned int to save space Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index b2f8ab9a57c4..37e4404d0227 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -583,7 +583,7 @@ struct mlx4_uar {
};
struct mlx4_bf {
- unsigned long offset;
+ unsigned int offset;
int buf_size;
struct mlx4_uar *uar;
void __iomem *reg;