Commit 7e89ed8a authored by Horatiu Vultur's avatar Horatiu Vultur Committed by David S. Miller

bridge: mrp: Update MRP frame type

Replace u16/u32 with be16/be32 in the MRP frame types.
This fixes sparse warnings like:
warning: cast to restricted __be16
Signed-off-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3e1c6846
...@@ -55,30 +55,30 @@ struct br_mrp_end_hdr { ...@@ -55,30 +55,30 @@ struct br_mrp_end_hdr {
}; };
struct br_mrp_common_hdr { struct br_mrp_common_hdr {
__u16 seq_id; __be16 seq_id;
__u8 domain[MRP_DOMAIN_UUID_LENGTH]; __u8 domain[MRP_DOMAIN_UUID_LENGTH];
}; };
struct br_mrp_ring_test_hdr { struct br_mrp_ring_test_hdr {
__u16 prio; __be16 prio;
__u8 sa[ETH_ALEN]; __u8 sa[ETH_ALEN];
__u16 port_role; __be16 port_role;
__u16 state; __be16 state;
__u16 transitions; __be16 transitions;
__u32 timestamp; __be32 timestamp;
}; };
struct br_mrp_ring_topo_hdr { struct br_mrp_ring_topo_hdr {
__u16 prio; __be16 prio;
__u8 sa[ETH_ALEN]; __u8 sa[ETH_ALEN];
__u16 interval; __be16 interval;
}; };
struct br_mrp_ring_link_hdr { struct br_mrp_ring_link_hdr {
__u8 sa[ETH_ALEN]; __u8 sa[ETH_ALEN];
__u16 port_role; __be16 port_role;
__u16 interval; __be16 interval;
__u16 blocked; __be16 blocked;
}; };
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment