/* * This file is part of the Chelsio T4 Ethernet driver for Linux. * 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. */ extern int max_eth_qsets; extern int allow_nonroot_filters; extern struct cxgb4_uld_info cxgb4_ulds[]; int cxgb4_closest_timer(const struct sge *s, int time); int cxgb_extension_ioctl(struct net_device *dev, void __user *useraddr); #ifdef CONFIG_CHELSIO_T4_OFFLOAD enum { SZ_VER_1 = sizeof(struct offload_settings), SZ_VER_0 = offsetof(struct offload_settings, tls) }; #define PAR_POLICY_LEN(b, c) (sizeof(struct ofld_policy_file) +\ (b * sizeof(struct ofld_prog_inst)) +\ (c * sizeof(u32))) #define SETTINGS_LEN(a, b, c, d) (PAR_POLICY_LEN(b, c) +\ ((a + 1) * (d))) int cxgb4_get_filter_count(struct adapter *adapter, unsigned int fidx, u64 *c, int hash, bool get_byte); #endif