Re: [PATCH v2 net-next 14/19] ionic: Add Tx and Rx handling

2019-07-01 Thread Shannon Nelson
On 6/29/19 11:57 AM, Jakub Kicinski wrote: On Fri, 28 Jun 2019 14:39:29 -0700, Shannon Nelson wrote: +static int ionic_tx(struct queue *q, struct sk_buff *skb) +{ + struct tx_stats *stats = q_to_tx_stats(q); + int err; + + if (skb->ip_summed == CHECKSUM_PARTIAL) +

Re: [PATCH v2 net-next 14/19] ionic: Add Tx and Rx handling

2019-06-29 Thread Jakub Kicinski
On Fri, 28 Jun 2019 14:39:29 -0700, Shannon Nelson wrote: > +static int ionic_tx(struct queue *q, struct sk_buff *skb) > +{ > + struct tx_stats *stats = q_to_tx_stats(q); > + int err; > + > + if (skb->ip_summed == CHECKSUM_PARTIAL) > + err = ionic_tx_calc_csum(q, skb); > +

[PATCH v2 net-next 14/19] ionic: Add Tx and Rx handling

2019-06-28 Thread Shannon Nelson
Add both the Tx and Rx queue setup and handling. The related stats display comes later. Instead of using the generic napi routines used by the slow-path commands, the Tx and Rx paths are simplified and inlined in one file in order to get better compiler optimizations. Signed-off-by: Shannon Nels