From: Jakub Kicinski <kuba@kernel.org>
To: FUJITA Tomonori <fujita.tomonori@gmail.com>
Cc: netdev@vger.kernel.org, andrew@lunn.ch, jiri@resnulli.us,
horms@kernel.org
Subject: Re: [PATCH net-next v4 3/6] net: tn40xx: add basic Tx handling
Date: Mon, 6 May 2024 18:51:29 -0700 [thread overview]
Message-ID: <20240506185129.7c904763@kernel.org> (raw)
In-Reply-To: <20240501230552.53185-4-fujita.tomonori@gmail.com>
On Thu, 2 May 2024 08:05:49 +0900 FUJITA Tomonori wrote:
> + err = tn40_tx_map_skb(priv, skb, txdd, &pkt_len);
> + if (err) {
> + dev_kfree_skb(skb);
> + return NETDEV_TX_OK;
make sure you always count drops
> + .ndo_get_stats = tn40_get_stats,
ndo_get_stats64 is the standard these days
> +struct tn40_txd_desc {
> + __le32 txd_val1;
> + __le16 mss;
> + __le16 length;
> + __le32 va_lo;
> + __le32 va_hi;
> + struct tn40_pbl pbl[]; /* Fragments */
> +} __packed;
> +
> +struct tn40_txf_desc {
> + u32 status;
> + u32 va_lo; /* VAdr[31:0] */
> + u32 va_hi; /* VAdr[63:32] */
> + u32 pad;
> +} __packed;
Can these be unaligned? There doesn't seem to be any holes in these
struct, it's not necessary to pack them unless you want them to be
unaligned.
next prev parent reply other threads:[~2024-05-07 1:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-01 23:05 [PATCH net-next v4 0/6] add ethernet driver for Tehuti Networks TN40xx chips FUJITA Tomonori
2024-05-01 23:05 ` [PATCH net-next v4 1/6] net: tn40xx: add pci " FUJITA Tomonori
2024-05-07 1:38 ` Jakub Kicinski
2024-05-08 7:36 ` FUJITA Tomonori
2024-05-08 13:49 ` Jakub Kicinski
2024-05-01 23:05 ` [PATCH net-next v4 2/6] net: tn40xx: add register defines FUJITA Tomonori
2024-05-01 23:05 ` [PATCH net-next v4 3/6] net: tn40xx: add basic Tx handling FUJITA Tomonori
2024-05-07 1:51 ` Jakub Kicinski [this message]
2024-05-08 7:41 ` FUJITA Tomonori
2024-05-01 23:05 ` [PATCH net-next v4 4/6] net: tn40xx: add basic Rx handling FUJITA Tomonori
2024-05-06 9:20 ` Paolo Abeni
2024-05-08 7:26 ` FUJITA Tomonori
2024-05-07 1:58 ` Jakub Kicinski
2024-05-08 7:43 ` FUJITA Tomonori
2024-05-01 23:05 ` [PATCH net-next v4 5/6] net: tn40xx: add mdio bus support FUJITA Tomonori
2024-05-01 23:05 ` [PATCH net-next v4 6/6] net: tn40xx: add PHYLIB support FUJITA Tomonori
2024-05-08 12:21 ` Andrew Lunn
2024-05-08 13:18 ` FUJITA Tomonori
2024-05-08 14:03 ` Andrew Lunn
2024-05-09 4:23 ` FUJITA Tomonori
2024-05-09 13:37 ` Andrew Lunn
2024-05-12 5:20 ` FUJITA Tomonori
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=20240506185129.7c904763@kernel.org \
--to=kuba@kernel.org \
--cc=andrew@lunn.ch \
--cc=fujita.tomonori@gmail.com \
--cc=horms@kernel.org \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
/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).