/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2016 Joyent, Inc.
*/
#include <sys/mdb_modapi.h>
#include "i40e_sw.h"
static const char *i40e_switch_rsrc_names[] = {
"VEBs",
"VSIs",
"Perfect Match MAC Addresses",
"S-Tags",
"Reserved",
"Multicast Hash Entries",
"Reserved",
"VLANs",
"VSI Lists",
"Reserved",
"VLAN Stat pools",
"Mirror rules",
"Queue sets",
"Inner VLAN Forwarding",
"Reserved",
"Inner MACs",
"IPs",
"VN2 Keys",
"Tunnelling Ports"
};
/*
* i40e mdb dcmds
*/
/* ARGSUSED */
static int
{
int i;
if (!(flags & DCMD_ADDRSPEC)) {
mdb_warn("::i40e_switch_rsrcs does not operate globally\n");
return (DCMD_USAGE);
}
return (DCMD_ERR);
}
"TOTAL", "USED", "UNALLOCED");
for (i = 0; i < i40e.i40e_switch_rsrc_actual; i++) {
i * sizeof (i40e_switch_rsrc_t);
const char *name;
sizeof (i40e_switch_rsrc_t)) {
mdb_warn("failed to read i40e_switch_rsrc_t %d at %p",
i, raddr);
return (DCMD_ERR);
}
} else {
char *buf;
}
}
return (DCMD_OK);
}
{ NULL }
};
};
const mdb_modinfo_t *
_mdb_init(void)
{
return (&i40e_modinfo);
}