All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] BOND TLS flags fixes
@ 2021-05-26  9:57 Tariq Toukan
  2021-05-26  9:57 ` [RFC PATCH 1/6] net: Fix features skip in for_each_netdev_feature() Tariq Toukan
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Tariq Toukan @ 2021-05-26  9:57 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski
  Cc: netdev, Moshe Shemesh, Boris Pismenny, Saeed Mahameed,
	Maxim Mikityanskiy, Tariq Toukan

Hi,

This RFC series suggests a solution for the following problem:

Bond interface and lower interface are both up with TLS RX/TX offloads on.
TX/RX csum offload is turned off for the upper, hence RX/TX TLS is turned off
for it as well.
Yet, although it indicates that feature is disabled, new connections are still
offloaded by the lower, as Bond has no way to impact that:
Return value of bond_sk_get_lower_dev() is agnostic to this change.

One way to solve this issue, is to bring back the Bond TLS operations callbacks,
i.e. provide implementation for struct tlsdev_ops in Bond.
This gives full control for the Bond over its features, making it aware of every
new TLS connection offload request.
This direction was proposed in the original Bond TLS implementation, but dropped
during ML review. Probably it's right to re-consider now.

Here I suggest another solution, which requires generic changes out of the bond
driver.

Fixes in patches 1 and 4 are needed anyway, independently to which solution
we choose. I'll probably submit them separately soon.

Regards,
Tariq

Tariq Toukan (6):
  net: Fix features skip in for_each_netdev_feature()
  net: Disable TX TLS device offload on lower devices if disabled on the
    upper
  net: Disable RX TLS device offload on lower devices if disabled on the
    upper
  net/bond: Enable RXCSUM feature for bond
  net/bond: Allow explicit control of the TLS device offload features
  net/bond: Do not turn on TLS features in bond_fix_features()

 drivers/net/bonding/bond_main.c | 6 +++---
 include/linux/netdev_features.h | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-06-07 19:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26  9:57 [RFC PATCH 0/6] BOND TLS flags fixes Tariq Toukan
2021-05-26  9:57 ` [RFC PATCH 1/6] net: Fix features skip in for_each_netdev_feature() Tariq Toukan
2021-05-26  9:57 ` [RFC PATCH 2/6] net: Disable TX TLS device offload on lower devices if disabled on the upper Tariq Toukan
2021-05-26  9:57 ` [RFC PATCH 3/6] net: Disable RX " Tariq Toukan
2021-05-26  9:57 ` [RFC PATCH 4/6] net/bond: Enable RXCSUM feature for bond Tariq Toukan
2021-05-26  9:57 ` [RFC PATCH 5/6] net/bond: Allow explicit control of the TLS device offload features Tariq Toukan
2021-05-26  9:57 ` [RFC PATCH 6/6] net/bond: Do not turn on TLS features in bond_fix_features() Tariq Toukan
2021-05-27  0:47 ` [RFC PATCH 0/6] BOND TLS flags fixes Jakub Kicinski
2021-05-27 14:07   ` Tariq Toukan
2021-05-27 17:56     ` Jakub Kicinski
2021-05-30 10:49       ` Tariq Toukan
2021-06-06 14:02         ` Tariq Toukan
2021-06-07 19:37           ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.