/**
* Status statistics for a port
*/
-typedef struct {
+struct cvmx_pip_port_status {
/* Inbound octets marked to be dropped by the IPD */
uint32_t dropped_octets;
/* Inbound packets marked to be dropped by the IPD */
uint64_t inb_octets;
/* Number of packets with GMX/SPX/PCI errors received by PIP */
uint16_t inb_errors;
-} cvmx_pip_port_status_t;
+};
/**
* Definition of the PIP custom header that can be prepended
* @status: Where to put the results.
*/
static inline void cvmx_pip_get_port_status(uint64_t port_num, uint64_t clear,
- cvmx_pip_port_status_t *status)
+ struct cvmx_pip_port_status *status)
{
union cvmx_pip_stat_ctl pip_stat_ctl;
union cvmx_pip_stat0_prtx stat0;
*/
static struct net_device_stats *cvm_oct_common_get_stats(struct net_device *dev)
{
- cvmx_pip_port_status_t rx_status;
+ struct cvmx_pip_port_status rx_status;
struct cvmx_pko_port_status tx_status;
struct octeon_ethernet *priv = netdev_priv(dev);
} s;
};
-typedef struct {
+struct cvmx_pip_port_status {
u32 dropped_octets;
u32 dropped_packets;
u32 pci_raw_packets;
u32 inb_packets;
u64 inb_octets;
u16 inb_errors;
-} cvmx_pip_port_status_t;
+};
struct cvmx_pko_port_status {
u32 packets;
}
static inline void cvmx_pip_get_port_status(u64 port_num, u64 clear,
- cvmx_pip_port_status_t *status)
+ struct cvmx_pip_port_status *status)
{ }
static inline void cvmx_pko_get_port_status(u64 port_num, u64 clear,