/* * Copyright (c) 2019 AVM GmbH . * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * 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 * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __OFFFLOAD_DATAPATH_H__ #define __OFFFLOAD_DATAPATH_H__ #include #include #include int offdp_ep_platform_data(const struct net_device *dev, void *data, size_t len); int offdp_vep_register(struct net_device *dev); int offdp_vep_unregister(struct net_device *dev); bool offdp_is_vep(struct net_device *dev); int offdp_vep_fast_rcv(struct sk_buff *skb); int offdp_vep_fast_rcv_raw(const struct net_device *dev, void *buf, unsigned long offset, unsigned long len); int offdp_vep_slow_rcv(unsigned long vep_handle, struct sk_buff *skb); int offdp_vep_fast_xmit(unsigned long vep_handle, struct sk_buff *skb); #endif //__OFFFLOAD_DATAPATH_H__