mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
22c1f67ea5
commit
7a7ee5312d
2 changed files with 6 additions and 5 deletions
|
@ -645,7 +645,7 @@ int switchdev_fib_ipv4_add(u32 dst, int dst_len, struct fib_info *fi,
|
|||
struct switchdev_obj fib_obj = {
|
||||
.id = SWITCHDEV_OBJ_IPV4_FIB,
|
||||
.ipv4_fib = {
|
||||
.dst = htonl(dst),
|
||||
.dst = dst,
|
||||
.dst_len = dst_len,
|
||||
.fi = fi,
|
||||
.tos = tos,
|
||||
|
@ -699,7 +699,7 @@ int switchdev_fib_ipv4_del(u32 dst, int dst_len, struct fib_info *fi,
|
|||
struct switchdev_obj fib_obj = {
|
||||
.id = SWITCHDEV_OBJ_IPV4_FIB,
|
||||
.ipv4_fib = {
|
||||
.dst = htonl(dst),
|
||||
.dst = dst,
|
||||
.dst_len = dst_len,
|
||||
.fi = fi,
|
||||
.tos = tos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue