netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Tony Nguyen <anthony.l.nguyen@intel.com>
Cc: davem@davemloft.net, pabeni@redhat.com, edumazet@google.com,
	andrew+netdev@lunn.ch, netdev@vger.kernel.org,
	Paul Greenwalt <paul.greenwalt@intel.com>,
	Alice Michael <alice.michael@intel.com>,
	Eric Joyner <eric.joyner@intel.com>,
	Alexander Lobakin <aleksander.lobakin@intel.com>,
	Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com>
Subject: Re: [PATCH net-next 01/15] ice: Add E830 checksum offload support
Date: Wed, 6 Nov 2024 18:08:39 -0800	[thread overview]
Message-ID: <20241106180839.6df5c40e@kernel.org> (raw)
In-Reply-To: <20241105222351.3320587-2-anthony.l.nguyen@intel.com>

On Tue,  5 Nov 2024 14:23:35 -0800 Tony Nguyen wrote:
> +static netdev_features_t
> +ice_fix_features_gcs(struct net_device *netdev, netdev_features_t features)
> +{
> +	if (!((features & NETIF_F_HW_CSUM) && (features & NETIF_F_ALL_TSO)))
> +		return features;
> +
> +	if (netdev->features & NETIF_F_HW_CSUM) {
> +		netdev_warn(netdev, "Dropping TSO. TSO and HW checksum are mutually exclusive.\n");
> +		features &= ~NETIF_F_ALL_TSO;
> +	} else {
> +		netdev_warn(netdev, "Dropping HW checksum. TSO and HW checksum are mutually exclusive.\n");
> +		features &= ~NETIF_F_HW_CSUM;
> +	}

why dropping what the user requested with a warning and not just return
an error from ice_set_features()?

  reply	other threads:[~2024-11-07  2:08 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-05 22:23 [PATCH net-next 00/15][pull request] Intel Wired LAN Driver Updates 2024-11-05 (ice, ixgbe, igc. igb, igbvf, e1000) Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 01/15] ice: Add E830 checksum offload support Tony Nguyen
2024-11-07  2:08   ` Jakub Kicinski [this message]
2024-11-08  1:37     ` Greenwalt, Paul
2024-11-08  4:14       ` Jakub Kicinski
2024-11-08 23:53         ` Greenwalt, Paul
2024-12-03 19:17           ` Greenwalt, Paul
2024-11-05 22:23 ` [PATCH net-next 02/15] ice: rework of dump serdes equalizer values feature Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 03/15] ice: extend " Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 04/15] ice: refactor "last" segment of DDP pkg Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 05/15] ice: support optional flags in signature segment header Tony Nguyen
2024-11-07  2:11   ` Jakub Kicinski
2024-11-05 22:23 ` [PATCH net-next 06/15] ice: Add support for persistent NAPI config Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 07/15] ice: only allow Tx promiscuous for multicast Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 08/15] ice: initialize pf->supported_rxdids immediately after loading DDP Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 09/15] ice: use stack variable for virtchnl_supported_rxdids Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 10/15] ice: Unbind the workqueue Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 11/15] ixgbe: Break include dependency cycle Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 12/15] igc: remove autoneg parameter from igc_mac_info Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 13/15] igb: Fix 2 typos in comments in igb_main.c Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 14/15] igbvf: remove unused spinlock Tony Nguyen
2024-11-05 22:23 ` [PATCH net-next 15/15] e1000: Hold RTNL when e1000_down can be called Tony Nguyen

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=20241106180839.6df5c40e@kernel.org \
    --to=kuba@kernel.org \
    --cc=aleksander.lobakin@intel.com \
    --cc=alice.michael@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=anthony.l.nguyen@intel.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=eric.joyner@intel.com \
    --cc=himasekharx.reddy.pucha@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=paul.greenwalt@intel.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).