1352962Shselasky/*- 2352962Shselasky * Copyright (c) 2019, Mellanox Technologies, Ltd. All rights reserved. 3352962Shselasky * 4352962Shselasky * Redistribution and use in source and binary forms, with or without 5352962Shselasky * modification, are permitted provided that the following conditions 6352962Shselasky * are met: 7352962Shselasky * 1. Redistributions of source code must retain the above copyright 8352962Shselasky * notice, this list of conditions and the following disclaimer. 9352962Shselasky * 2. Redistributions in binary form must reproduce the above copyright 10352962Shselasky * notice, this list of conditions and the following disclaimer in the 11352962Shselasky * documentation and/or other materials provided with the distribution. 12352962Shselasky * 13352962Shselasky * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS `AS IS' AND 14352962Shselasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15352962Shselasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16352962Shselasky * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 17352962Shselasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18352962Shselasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19352962Shselasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20352962Shselasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21352962Shselasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22352962Shselasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23352962Shselasky * SUCH DAMAGE. 24352962Shselasky * 25352962Shselasky * $FreeBSD: stable/11/sys/dev/mlx5/mpfs.h 359542 2020-04-01 22:45:33Z kib $ 26352962Shselasky */ 27352962Shselasky 28352962Shselasky#ifndef _MLX5_MPFS_H_ 29352962Shselasky#define _MLX5_MPFS_H_ 30352962Shselasky 31352962Shselaskystruct mlx5_core_dev; 32359542Skibint mlx5_mpfs_add_mac(struct mlx5_core_dev *dev, u32 *p_index, const u8 *mac, 33359542Skib u8 vlan_valid, u16 bbvlan); 34352962Shselaskyint mlx5_mpfs_del_mac(struct mlx5_core_dev *dev, u32 index); 35352962Shselaskyint mlx5_mpfs_init(struct mlx5_core_dev *dev); 36352962Shselaskyvoid mlx5_mpfs_destroy(struct mlx5_core_dev *dev); 37352962Shselasky 38352962Shselasky#endif /* _MLX5_MPFS_H_ */ 39