From: Horatiu Vultur <horatiu.vultur@microchip.com>
To: <nikolay@cumulusnetworks.com>, <roopa@cumulusnetworks.com>,
<jiri@resnulli.us>, <ivecera@redhat.com>, <davem@davemloft.net>,
<kuba@kernel.org>, <UNGLinuxDriver@microchip.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<bridge@lists.linux-foundation.org>
Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
Subject: [PATCH net-next v2 1/3] bridge: mrp: Update MRP frame type
Date: Sat, 30 May 2020 18:09:46 +0000 [thread overview]
Message-ID: <20200530180948.1194569-2-horatiu.vultur@microchip.com> (raw)
In-Reply-To: <20200530180948.1194569-1-horatiu.vultur@microchip.com>
Replace u16/u32 with be16/be32 in the MRP frame types.
This fixes sparse warnings like:
warning: cast to restricted __be16
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
include/uapi/linux/mrp_bridge.h | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/include/uapi/linux/mrp_bridge.h b/include/uapi/linux/mrp_bridge.h
index 2600cdf5a2848..bcad42128d625 100644
--- a/include/uapi/linux/mrp_bridge.h
+++ b/include/uapi/linux/mrp_bridge.h
@@ -55,30 +55,30 @@ struct br_mrp_end_hdr {
};
struct br_mrp_common_hdr {
- __u16 seq_id;
+ __be16 seq_id;
__u8 domain[MRP_DOMAIN_UUID_LENGTH];
};
struct br_mrp_ring_test_hdr {
- __u16 prio;
+ __be16 prio;
__u8 sa[ETH_ALEN];
- __u16 port_role;
- __u16 state;
- __u16 transitions;
- __u32 timestamp;
+ __be16 port_role;
+ __be16 state;
+ __be16 transitions;
+ __be32 timestamp;
};
struct br_mrp_ring_topo_hdr {
- __u16 prio;
+ __be16 prio;
__u8 sa[ETH_ALEN];
- __u16 interval;
+ __be16 interval;
};
struct br_mrp_ring_link_hdr {
__u8 sa[ETH_ALEN];
- __u16 port_role;
- __u16 interval;
- __u16 blocked;
+ __be16 port_role;
+ __be16 interval;
+ __be16 blocked;
};
#endif
--
2.26.2
next prev parent reply other threads:[~2020-05-30 16:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-30 18:09 [PATCH net-next v2 0/3] bridge: mrp: Add support for MRA role Horatiu Vultur
2020-05-30 18:09 ` Horatiu Vultur [this message]
2020-05-30 18:09 ` [PATCH net-next v2 2/3] bridge: mrp: Set the priority of MRP instance Horatiu Vultur
2020-05-30 18:09 ` [PATCH net-next v2 3/3] bridge: mrp: Add support for role MRA Horatiu Vultur
2020-06-01 18:56 ` [PATCH net-next v2 0/3] bridge: mrp: Add support for MRA role David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200530180948.1194569-2-horatiu.vultur@microchip.com \
--to=horatiu.vultur@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=ivecera@redhat.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=roopa@cumulusnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).