aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dma_intel/format.c
blob: b05a06fb3b1f9d3df17381b371aa72e753a83211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: Apache-2.0
 * Copyright (c) 2022 Intel and/or its affiliates.
 */
#include <vlib/vlib.h>
#include <vlib/pci/pci.h>
#include <vlib/dma/dma.h>
#include <vnet/plugin/plugin.h>
#include <dma_intel/dsa_intel.h>

u8 *
format_intel_dsa_addr (u8 *s, va_list *va)
{
  intel_dsa_channel_t *ch = va_arg (*va, intel_dsa_channel_t *);
  return format (s, "wq%d.%d", ch->did, ch->qid);
}