/* * This file is part of the Chelsio T4/T5/T6 Ethernet driver. * * Copyright (C) 2003-2017 Chelsio Communications. All rights reserved. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in this * release for licensing terms and conditions. */ #ifndef __CXGB4VF_OSDEP_H__ #define __CXGB4VF_OSDEP_H__ #include #include #include #include #include "cxgb4vf_compat.h" #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) #define CONFIG_CXGB4VF_GRO 1 #endif #ifndef SPEED_40000 #define SPEED_40000 40000 #endif /* * The Linux drivers have been converted to deal with the new 32-bit Firmware * Port Capabilities. */ #define T4VF_OS_NEW_FW_CAPS32 1 #endif /* __CXGB4VF_OSDEP_H__ */