- Jan 23, 2015
-
-
avoid including rtu.h by rtud clients Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
WRS_SHM_MAX_SIZE has to be increased because rtud data is bigger than 256KB vlan_tab is 81920 rtu_htab is 180224 rtud total data: 262,144+shm_header Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Add rtu_shmem_header to keep track of all rtu's data in shmem Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Add "rtu_" to structure names in rtu_shmem.h and change all users. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move definitions of structures used in rtud's shm to rtu_shm.h in libwr. Move few more definitions to rtu_shm.h and update .h files relaying on moved structures/definitions. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 19, 2015
-
-
Adam Wujek authored
Remove unused minipc call get_timing_state. Remove functions functions halexp_get_timing_state, export_get_timing_state and struct hexp_timing_state_t. Update developer manual Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Update developer manual after removal of get_port_state. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 16, 2015
-
-
Adam Wujek authored
hal_port_lookup was redundant with hal_lookup_port. File hal_shmem.c is not needed anymore. add const qualifier to name parameter of hal_lookup_port function Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
also removed typedefs hexp_port_state_t hexp_port_list_t Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Minipc call to get port state will not be used anymore, since HAL export port state through shmem. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Function hal_port_get_exported_state, fills structure hal_port_state with data that are not available in SHM. It just assigns defines. These defines are private to HAL, and assignment should be done in HAL. Similar problem is for wrpc. There is a wrapper function that pretends to be HAL. All HAL info should be filled in that function. Fields added: --uint32_t clock_period; --uint32_t t2_phase_transition; --uint32_t t4_phase_transition; Additionally updated wrs_dump_shmem.c to dump new fields and the version number of HAL SHM. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
No technical change Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
It can be regenerated if needed (and added to .gitignore I hope). At this point, it's not useful. It actually hits us in "git grep" when we look for code. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
-DDEBUG in libwr forces LOG_DEBUG level in libwr/wrs-msg.c. This is the desired behaviour, but we want it off by default now. All other DEBUG symbols in Makefiles have no effect, so they are removed to avoid tricking our developers in setting/unsetting them and see no effect at all. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
This was a build-time conditional. It is now a run-time conditional using wrs-msg. As a result, we have a verbose rtud. Fixed in next commit. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 12, 2015
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Alessandro Rubini authored
-
Alessandro Rubini authored
Previous commits made a number of local variables and cast assignment into identity operations. So this removes them. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
typedefs are bad; and typedefs to void pointers more so (there is no checking by the compiler any more). Use an opaque structure instead. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
There is no need to use packed structures unless they match hardware and or stored-structures of legacy processors. etherpacket here may look like an issue, but it's naturally aligned by itself. Nobody does it for a reason. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Meanwhile, remove one of the typedefs and avoid "my_socket": "wr_socket" is more correct. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
meanwhile, turn "6" to ETH_ALEN. It doesn't make sense to typedef if it doesn't hide details; so let's use uint8_t and it's defined size. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
We returned PTPD_NETIF_ERROR or PTPD_NETIF_OK but the caller was cheking against 0 (or not checking). Use 0 and -1 removing the names. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jan 09, 2015
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Use "wr_date -n" to get host time (which might come from NTP information) instead of WR time.
-
save_kconfig() new algorithm. It supports reading and saving previous commented lines and enabling/disabling binary options (i.e. CONFIG_PTP_WR_DEFAULT=y or "# CONFIG_PTP_WR_DEFAULT is not set"). It's not done by hand anymore.
-
header ports were not loaded correctly because of format changes in tmp/ports.conf output. Fixed now.
-
delta_tx and delta_rx in the SFP information are differences from the values in the "calibration" SFP model. Thus they are signed not uint32_t. Fortunately nobody used negative values so far. I also renamed the fields, to ensure the compiler would find all uses. The commit also syncs headers to ppsi, including the changes that happened here but were irrelevant to there. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
When two free-running switches were turned on at the same time, the slave's ppsi exited with a fatal error because it was setting system time to a negative UTC value (small - 35). We now don't set system time to anything older than today -- if WR is that wrong, anything else is better for sure. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Acked-by:
Adam Wujek <adam.wujek@cern.ch>
-
Alessandro Rubini authored
-
Adam Wujek authored
All clients using query_ports moved to use shm for communication with HAL. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jan 08, 2015
-
-
Adam Wujek authored
wrsw_hal does not support "-c" parameter anymore. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Arrays uses WRS_N_PORTS as maximum number of ports. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-