![]() |
|
|||
0001 /* 0002 * This file is part of the Chelsio T4 Ethernet driver for Linux. 0003 * 0004 * Copyright (c) 2016 Chelsio Communications, Inc. All rights reserved. 0005 * 0006 * This software is available to you under a choice of one of two 0007 * licenses. You may choose to be licensed under the terms of the GNU 0008 * General Public License (GPL) Version 2, available from the file 0009 * COPYING in the main directory of this source tree, or the 0010 * OpenIB.org BSD license below: 0011 * 0012 * Redistribution and use in source and binary forms, with or 0013 * without modification, are permitted provided that the following 0014 * conditions are met: 0015 * 0016 * - Redistributions of source code must retain the above 0017 * copyright notice, this list of conditions and the following 0018 * disclaimer. 0019 * 0020 * - Redistributions in binary form must reproduce the above 0021 * copyright notice, this list of conditions and the following 0022 * disclaimer in the documentation and/or other materials 0023 * provided with the distribution. 0024 * 0025 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 0026 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0027 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 0028 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 0029 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 0030 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0031 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 0032 * SOFTWARE. 0033 */ 0034 0035 #ifndef __CXGB4_TC_U32_H 0036 #define __CXGB4_TC_U32_H 0037 0038 #include <net/pkt_cls.h> 0039 0040 static inline bool can_tc_u32_offload(struct net_device *dev) 0041 { 0042 struct adapter *adap = netdev2adap(dev); 0043 0044 return (dev->features & NETIF_F_HW_TC) && adap->tc_u32 ? true : false; 0045 } 0046 0047 int cxgb4_config_knode(struct net_device *dev, struct tc_cls_u32_offload *cls); 0048 int cxgb4_delete_knode(struct net_device *dev, struct tc_cls_u32_offload *cls); 0049 0050 void cxgb4_cleanup_tc_u32(struct adapter *adapter); 0051 struct cxgb4_tc_u32_table *cxgb4_init_tc_u32(struct adapter *adap); 0052 #endif /* __CXGB4_TC_U32_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |