1/*- 2 * Copyright (c) 2012-2015 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 15 unchanged lines hidden (view full) --- 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/hunt_nic.c 293891 2016-01-14 09:05:51Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36#if EFSYS_OPT_MON_MCDI 37#include "mcdi_mon.h" 38#endif 39 40#if EFSYS_OPT_HUNTINGTON --- 874 unchanged lines hidden (view full) --- 915 916 /* Check if the firmware supports TSO */ 917 if (MCDI_CMD_DWORD_FIELD(&datapath_capabilities, 918 GET_CAPABILITIES_OUT_TX_TSO) == 1) 919 encp->enc_fw_assisted_tso_enabled = B_TRUE; 920 else 921 encp->enc_fw_assisted_tso_enabled = B_FALSE; 922 |
923 /* Check if the firmware supports FATSOv2 */ 924 if (MCDI_CMD_DWORD_FIELD(&datapath_capabilities_v2, 925 GET_CAPABILITIES_V2_OUT_TX_TSO_V2) == 1) 926 encp->enc_fw_assisted_tso_v2_enabled = B_TRUE; 927 else 928 encp->enc_fw_assisted_tso_v2_enabled = B_FALSE; 929 |
930 /* Check if the firmware has vadapter/vport/vswitch support */ 931 if (MCDI_CMD_DWORD_FIELD(&datapath_capabilities, 932 GET_CAPABILITIES_OUT_EVB) == 1) 933 encp->enc_datapath_cap_evb = B_TRUE; 934 else 935 encp->enc_datapath_cap_evb = B_FALSE; 936 937 /* Check if the firmware supports VLAN insertion */ --- 942 unchanged lines hidden --- |