Thread (4 messages) flat view 4 messages, 4 authors, 2021-11-04

Re: [PATCH net v2] net: marvell: prestera: fix hw structure laid out

From: Volodymyr Mytnyk [C] <hidden>
Date: 2021-11-04 09:46:07
Also in: lkml

On Wed, Nov 3, 2021 at 10:56 AM Volodymyr Mytnyk
[off-list ref] wrote:
quoted
From: Volodymyr Mytnyk <redacted>

- fix structure laid out discussed in:
    [PATCH net-next v4] net: marvell: prestera: add firmware v4.0 support
    https://urldefense.proofpoint.com/v2/url?u=https-3A__www.spinics.net_lists_kernel_msg4127689.html&d=DwIBaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=Y41pILcavAE6E85lMlyXdQBpY03LUi5-euLmDcLBBRw&m=MggFlhvEsV0dikgTUWWhK5i05HFJvv2BF0EdMIAghqSI92og-BAfZXe2Wm82FjG7&s=KkA8BuuYlG-6UWpaKKvGkvVRbhyoKnSNnftLBCYELDE&e= 

- fix review comments discussed in:
    [PATCH] [-next] net: marvell: prestera: Add explicit padding
    https://urldefense.proofpoint.com/v2/url?u=https-3A__www.spinics.net_lists_kernel_msg4130293.html&d=DwIBaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=Y41pILcavAE6E85lMlyXdQBpY03LUi5-euLmDcLBBRw&m=MggFlhvEsV0dikgTUWWhK5i05HFJvv2BF0EdMIAghqSI92og-BAfZXe2Wm82FjG7&s=Hs1u5qLhVlePG9KiNdOJiDpLTF200_9hn0gL9WLRJUA&e= 

- fix patchwork issues
- rebase on net master

Reported-by: kernel test robot <redacted>
Fixes: bb5dbf2cc64d ("net: marvell: prestera: add firmware v4.0 support")
Signed-off-by: Volodymyr Mytnyk <redacted>
Thanks for your patch!
quoted
--- a/drivers/net/ethernet/marvell/prestera/prestera_hw.c
+++ b/drivers/net/ethernet/marvell/prestera/prestera_hw.c
quoted
 struct prestera_msg_port_flood_param {
        u8 type;
        u8 enable;
-};
+       u8 __pad[2];
+} __packed;
What's the point of having __packed on a struct of bytes?
This one can be removed probaby. Thanks. Will fix it in follow up patch set.
Gr{oetje,eeting}s,

                        Geert
              Volodymyr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help