selftest.c (0bbe06493b9526f2513ace902d55aa0e141dba73) selftest.c (6dc5774deefe38d9ab385a5dafbe6614ae63d166)
1// SPDX-License-Identifier: GPL-2.0-only
2/****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2012 Solarflare Communications Inc.
6 */
7
8#include <linux/netdevice.h>

--- 412 unchanged lines hidden (view full) ---

421 struct sk_buff *skb;
422 int i;
423 netdev_tx_t rc;
424
425 /* Transmit N copies of buffer */
426 for (i = 0; i < state->packet_count; i++) {
427 /* Allocate an skb, holding an extra reference for
428 * transmit completion counting */
1// SPDX-License-Identifier: GPL-2.0-only
2/****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2012 Solarflare Communications Inc.
6 */
7
8#include <linux/netdevice.h>

--- 412 unchanged lines hidden (view full) ---

421 struct sk_buff *skb;
422 int i;
423 netdev_tx_t rc;
424
425 /* Transmit N copies of buffer */
426 for (i = 0; i < state->packet_count; i++) {
427 /* Allocate an skb, holding an extra reference for
428 * transmit completion counting */
429 skb = alloc_skb(EFX_LOOPBACK_PAYLOAD_LEN, GFP_KERNEL);
429 skb = alloc_skb(sizeof(state->payload), GFP_KERNEL);
430 if (!skb)
431 return -ENOMEM;
432 state->skbs[i] = skb;
433 skb_get(skb);
434
435 /* Copy the payload in, incrementing the source address to
436 * exercise the rss vectors */
437 payload = skb_put(skb, sizeof(state->payload));

--- 382 unchanged lines hidden ---
430 if (!skb)
431 return -ENOMEM;
432 state->skbs[i] = skb;
433 skb_get(skb);
434
435 /* Copy the payload in, incrementing the source address to
436 * exercise the rss vectors */
437 payload = skb_put(skb, sizeof(state->payload));

--- 382 unchanged lines hidden ---