mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
ifconfig down/up cycles was not working. Fix that which is required to support MTU changes. Now doing ifconfig enic0 mtu 3000 for example works. If the MTU is changes in the VIC HW configuration, that is not reflected in and the OS reports the default 1500. I need to look at that but changing it via ifconfig works. So this is different then what Linux does. Change TX interrupt allocation to be in this driver. Change the admin interrupt count to 2. This make multiple queues work but need to be done as pairs so if the VIC has more TX or RX queues setup in the VIC configuration it will use the lesser value. While updating the TX interrupt also add support for devcmd2. Enable checksum offloading. PR: 282095
27 lines
453 B
C
27 lines
453 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2008-2017 Cisco Systems, Inc. All rights reserved.
|
|
* Copyright 2007 Nuova Systems, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _VNIC_RSS_H_
|
|
#define _VNIC_RSS_H_
|
|
|
|
/* RSS key array */
|
|
union vnic_rss_key {
|
|
struct {
|
|
u8 b[10];
|
|
u8 b_pad[6];
|
|
} key[4];
|
|
u64 raw[8];
|
|
};
|
|
|
|
/* RSS cpu array */
|
|
union vnic_rss_cpu {
|
|
struct {
|
|
u8 b[4];
|
|
u8 b_pad[4];
|
|
} cpu[32];
|
|
u64 raw[32];
|
|
};
|
|
|
|
#endif /* _VNIC_RSS_H_ */
|