diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-05-13 02:03:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-13 12:26:27 -0400 |
commit | 7a7ee5312d133a01cb23626c133ae30692ecb748 (patch) | |
tree | 5ffdd713353c351ced771f5dbddd378285ce890f /net/switchdev/switchdev.c | |
parent | 22c1f67ea5cd3296ee82df7397fb5e5f81eccb98 (diff) |
switchdev: sparse warning: pass ipv4 fib dst as network-byte order
And let driver convert it to host-byte order as needed.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r-- | net/switchdev/switchdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c index a267f7728165..77f1b6e3f78e 100644 --- a/net/switchdev/switchdev.c +++ b/net/switchdev/switchdev.c | |||
@@ -645,7 +645,7 @@ int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi, | |||
645 | struct switchdev_obj fib_obj = { | 645 | struct switchdev_obj fib_obj = { |
646 | .id = SWITCHDEV_OBJ_IPV4_FIB, | 646 | .id = SWITCHDEV_OBJ_IPV4_FIB, |
647 | .ipv4_fib = { | 647 | .ipv4_fib = { |
648 | .dst = htonl(dst), | 648 | .dst = dst, |
649 | .dst_len = dst_len, | 649 | .dst_len = dst_len, |
650 | .fi = fi, | 650 | .fi = fi, |
651 | .tos = tos, | 651 | .tos = tos, |
@@ -699,7 +699,7 @@ int switchdev_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi, | |||
699 | struct switchdev_obj fib_obj = { | 699 | struct switchdev_obj fib_obj = { |
700 | .id = SWITCHDEV_OBJ_IPV4_FIB, | 700 | .id = SWITCHDEV_OBJ_IPV4_FIB, |
701 | .ipv4_fib = { | 701 | .ipv4_fib = { |
702 | .dst = htonl(dst), | 702 | .dst = dst, |
703 | .dst_len = dst_len, | 703 | .dst_len = dst_len, |
704 | .fi = fi, | 704 | .fi = fi, |
705 | .tos = tos, | 705 | .tos = tos, |