Commit f9b32181 authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

ppsi: update ppsi

in ppsi:
--update hal_shmem to version 7
--add tx and rx packet counters
--add error counters for SNMP
--increase ppsi shmem version to 6
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 8afa6c8b
......@@ -102,22 +102,22 @@ struct hal_port_state {
uint32_t ep_base;
};
struct hal_temp_sensors {
int fpga; /* IC19 */
int pll; /* IC18 */
int psl; /* IC20 Power Supply Left (PSL) */
int psr; /* IC17 Power Supply Right (PSR) */
};
/* This is the overall structure stored in shared memory */
#define HAL_SHMEM_VERSION 3 /* Version 3 because sfp delta is signed */
#define HAL_SHMEM_VERSION 7 /* Version 7 because of moving of reading
* temperature treshold values to snmpd */
struct hal_shmem_header {
int nports;
struct hal_port_state *ports;
struct hal_temp_sensors temp;
};
/*
* The following functions were in userspace/wrsw_hal/hal_ports.c,
* and are used to marshall data for the RPC format. Now that we
* offer shared memory, it is the caller who must convert data to
* the expected format (which remains the RPC one as I write this).
*/
struct hal_port_state *hal_port_lookup(struct hal_port_state *ports,
const char *name);
static inline int state_up(int state)
{
return (state != HAL_PORT_STATE_LINK_DOWN
......@@ -125,7 +125,8 @@ static inline int state_up(int state)
}
static inline struct hal_port_state *hal_lookup_port(
struct hal_port_state *ports, int nports, char *name)
struct hal_port_state *ports, int nports,
const char *name)
{
int i;
......
ppsi @ b8ebe5fe
Subproject commit 782773077690f2b2d53af0395e3b94e8fcc89a9d
Subproject commit b8ebe5fee29e094175bb7d349483fdc651de146e
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment