Re: [PATCH net-next v2 1/8] ethtool: Add support for configuring frame preemption

2021-01-21 Thread Vinicius Costa Gomes
Jakub Kicinski writes: > On Mon, 18 Jan 2021 16:40:21 -0800 Vinicius Costa Gomes wrote: >> + == == >> + ``ETHTOOL_A_CHANNELS_HEADER`` nested request header > > ETHTOOL_A_PREEMPT_HEADER > >> + ==

Re: [PATCH net-next v2 1/8] ethtool: Add support for configuring frame preemption

2021-01-19 Thread Jakub Kicinski
On Mon, 18 Jan 2021 16:40:21 -0800 Vinicius Costa Gomes wrote: > + == == > + ``ETHTOOL_A_CHANNELS_HEADER`` nested request header ETHTOOL_A_PREEMPT_HEADER > + == ==

Re: [PATCH net-next v2 1/8] ethtool: Add support for configuring frame preemption

2021-01-19 Thread Vinicius Costa Gomes
Hi Vladimir, Vladimir Oltean writes: > On Mon, Jan 18, 2021 at 04:40:21PM -0800, Vinicius Costa Gomes wrote: >> +int ethnl_set_preempt(struct sk_buff *skb, struct genl_info *info) >> +{ >> +struct ethnl_req_info req_info = {}; >> +struct nlattr **tb = info->attrs; >> +struct ethtool_

Re: [PATCH net-next v2 1/8] ethtool: Add support for configuring frame preemption

2021-01-18 Thread Vladimir Oltean
On Mon, Jan 18, 2021 at 04:40:21PM -0800, Vinicius Costa Gomes wrote: > +int ethnl_set_preempt(struct sk_buff *skb, struct genl_info *info) > +{ > + struct ethnl_req_info req_info = {}; > + struct nlattr **tb = info->attrs; > + struct ethtool_fp preempt = {}; > + struct net_device *

[PATCH net-next v2 1/8] ethtool: Add support for configuring frame preemption

2021-01-18 Thread Vinicius Costa Gomes
Frame preemption (described in IEEE 802.3br-2016) defines the concept of preemptible and express queues. It allows traffic from express queues to "interrupt" traffic from preemptible queues, which are "resumed" after the express traffic has finished transmitting. Frame preemption can only be used