History

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

Horatiu Vultur committed 6 years ago

Commit 7e89ed81 parent 3e1c6841 file · +11 −11Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/mrp_bridge.h+11−11
@@ -55,30 +55,30 @@ struct br_mrp_end_hdr { · 54 unmodified lines
55};55};
56 56
57struct br_mrp_common_hdr {57struct br_mrp_common_hdr {
58 __u16 seq_id;58 __be16 seq_id;
59 __u8 domain[MRP_DOMAIN_UUID_LENGTH];59 __u8 domain[MRP_DOMAIN_UUID_LENGTH];
60};60};
61 61
62struct br_mrp_ring_test_hdr {62struct br_mrp_ring_test_hdr {
63 __u16 prio;63 __be16 prio;
64 __u8 sa[ETH_ALEN];64 __u8 sa[ETH_ALEN];
65 __u16 port_role;65 __be16 port_role;
66 __u16 state;66 __be16 state;
67 __u16 transitions;67 __be16 transitions;
68 __u32 timestamp;68 __be32 timestamp;
69};69};
70 70
71struct br_mrp_ring_topo_hdr {71struct br_mrp_ring_topo_hdr {
72 __u16 prio;72 __be16 prio;
73 __u8 sa[ETH_ALEN];73 __u8 sa[ETH_ALEN];
74 __u16 interval;74 __be16 interval;
75};75};
76 76
77struct br_mrp_ring_link_hdr {77struct br_mrp_ring_link_hdr {
78 __u8 sa[ETH_ALEN];78 __u8 sa[ETH_ALEN];
79 __u16 port_role;79 __be16 port_role;
80 __u16 interval;80 __be16 interval;
81 __u16 blocked;81 __be16 blocked;
82};82};
83 83
84#endif84#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t