net: vrf: correct FRA_L3MDEV encode type
authorJeff Barnhill <0xeffeff@gmail.com>
Wed, 1 Nov 2017 14:58:09 +0000 (14:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Nov 2017 07:35:55 +0000 (08:35 +0100)
commit1fc1f1ac43518c7eba814d69698f6e04e9530539
tree91d1167f253fc9958a7f1c0891e1762e3f345851
parentfda29ee84637310f3eab1d867062388015afd122
net: vrf: correct FRA_L3MDEV encode type

[ Upstream commit 18129a24983906eaf2a2d448ce4b83e27091ebe2 ]

FRA_L3MDEV is defined as U8, but is being added as a U32 attribute. On
big endian architecture, this results in the l3mdev entry not being
added to the FIB rules.

Fixes: 1aa6c4f6b8cd8 ("net: vrf: Add l3mdev rules on first device create")
Signed-off-by: Jeff Barnhill <0xeffeff@gmail.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vrf.c