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
5555 };
5656
5757 struct br_mrp_common_hdr {
58− __u16 seq_id;
58+ __be16 seq_id;
5959 __u8 domain[MRP_DOMAIN_UUID_LENGTH];
6060 };
6161
6262 struct br_mrp_ring_test_hdr {
63− __u16 prio;
63+ __be16 prio;
6464 __u8 sa[ETH_ALEN];
65− __u16 port_role;
66− __u16 state;
67− __u16 transitions;
68− __u32 timestamp;
65+ __be16 port_role;
66+ __be16 state;
67+ __be16 transitions;
68+ __be32 timestamp;
6969 };
7070
7171 struct br_mrp_ring_topo_hdr {
72− __u16 prio;
72+ __be16 prio;
7373 __u8 sa[ETH_ALEN];
74− __u16 interval;
74+ __be16 interval;
7575 };
7676
7777 struct br_mrp_ring_link_hdr {
7878 __u8 sa[ETH_ALEN];
79− __u16 port_role;
80− __u16 interval;
81− __u16 blocked;
79+ __be16 port_role;
80+ __be16 interval;
81+ __be16 blocked;
8282 };
8383
8484 #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