linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c

// SPDX-License-Identifier: GPL-2.0+
// Copyright (c) 2016-2017 Hisilicon Limited.

#include "hclge_main.h"
#include "hclge_dcb.h"
#include "hclge_tm.h"
#include "hnae3.h"

#define BW_PERCENT

static int hclge_ieee_ets_to_tm_info(struct hclge_dev *hdev,
				     struct ieee_ets *ets)
{}

static void hclge_tm_info_to_ieee_ets(struct hclge_dev *hdev,
				      struct ieee_ets *ets)
{}

/* IEEE std */
static int hclge_ieee_getets(struct hnae3_handle *h, struct ieee_ets *ets)
{}

static int hclge_dcb_common_validate(struct hclge_dev *hdev, u8 num_tc,
				     u8 *prio_tc)
{}

static u8 hclge_ets_tc_changed(struct hclge_dev *hdev, struct ieee_ets *ets,
			       bool *changed)
{}

static int hclge_ets_sch_mode_validate(struct hclge_dev *hdev,
				       struct ieee_ets *ets, bool *changed,
				       u8 tc_num)
{}

static int hclge_ets_validate(struct hclge_dev *hdev, struct ieee_ets *ets,
			      u8 *tc, bool *changed)
{}

static int hclge_map_update(struct hclge_dev *hdev)
{}

static int hclge_notify_down_uinit(struct hclge_dev *hdev)
{}

static int hclge_notify_init_up(struct hclge_dev *hdev)
{}

static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets)
{}

static int hclge_ieee_getpfc(struct hnae3_handle *h, struct ieee_pfc *pfc)
{}

static int hclge_ieee_setpfc(struct hnae3_handle *h, struct ieee_pfc *pfc)
{}

static int hclge_ieee_setapp(struct hnae3_handle *h, struct dcb_app *app)
{}

static int hclge_ieee_delapp(struct hnae3_handle *h, struct dcb_app *app)
{}

/* DCBX configuration */
static u8 hclge_getdcbx(struct hnae3_handle *h)
{}

static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode)
{}

static int hclge_mqprio_qopt_check(struct hclge_dev *hdev,
				   struct tc_mqprio_qopt_offload *mqprio_qopt)
{}

static void hclge_sync_mqprio_qopt(struct hnae3_tc_info *tc_info,
				   struct tc_mqprio_qopt_offload *mqprio_qopt)
{}

static int hclge_config_tc(struct hclge_dev *hdev,
			   struct hnae3_tc_info *tc_info)
{}

/* Set up TC for hardware offloaded mqprio in channel mode */
static int hclge_setup_tc(struct hnae3_handle *h,
			  struct tc_mqprio_qopt_offload *mqprio_qopt)
{}

static const struct hnae3_dcb_ops hns3_dcb_ops =;

void hclge_dcb_ops_set(struct hclge_dev *hdev)
{}