Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140103116
D12675.id33997.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12675.id33997.diff
View Options
Index: sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
===================================================================
--- sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
+++ sys/dev/mlx4/mlx4_en/mlx4_en_rx.c
@@ -558,26 +558,28 @@
static __inline int
mlx4_en_rss_hash(__be16 status, int udp_rss)
{
- const __be16 status_all = cpu_to_be16(
+ enum {
+ status_all = cpu_to_be16(
MLX4_CQE_STATUS_IPV4 |
MLX4_CQE_STATUS_IPV4F |
MLX4_CQE_STATUS_IPV6 |
MLX4_CQE_STATUS_TCP |
- MLX4_CQE_STATUS_UDP);
- const __be16 status_ipv4_tcp = cpu_to_be16(
+ MLX4_CQE_STATUS_UDP),
+ status_ipv4_tcp = cpu_to_be16(
MLX4_CQE_STATUS_IPV4 |
- MLX4_CQE_STATUS_TCP);
- const __be16 status_ipv6_tcp = cpu_to_be16(
+ MLX4_CQE_STATUS_TCP),
+ status_ipv6_tcp = cpu_to_be16(
MLX4_CQE_STATUS_IPV6 |
- MLX4_CQE_STATUS_TCP);
- const __be16 status_ipv4_udp = cpu_to_be16(
+ MLX4_CQE_STATUS_TCP),
+ status_ipv4_udp = cpu_to_be16(
MLX4_CQE_STATUS_IPV4 |
- MLX4_CQE_STATUS_UDP);
- const __be16 status_ipv6_udp = cpu_to_be16(
+ MLX4_CQE_STATUS_UDP),
+ status_ipv6_udp = cpu_to_be16(
MLX4_CQE_STATUS_IPV6 |
- MLX4_CQE_STATUS_UDP);
- const __be16 status_ipv4 = cpu_to_be16(MLX4_CQE_STATUS_IPV4);
- const __be16 status_ipv6 = cpu_to_be16(MLX4_CQE_STATUS_IPV6);
+ MLX4_CQE_STATUS_UDP),
+ status_ipv4 = cpu_to_be16(MLX4_CQE_STATUS_IPV4),
+ status_ipv6 = cpu_to_be16(MLX4_CQE_STATUS_IPV6)
+ };
status &= status_all;
switch (status) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 6:39 AM (9 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27108919
Default Alt Text
D12675.id33997.diff (1 KB)
Attached To
Mode
D12675: mlx4: use enum constants instead of const vars for case exprs
Attached
Detach File
Event Timeline
Log In to Comment