Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand MAU Type Support for 2.5G, 5G and 10G #572

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
7675324
Read actual default gateway on Linux from /proc/net/route
troglobit Mar 3, 2023
cf6d3ae
Find the best IP address on the given interface on Linux
troglobit Mar 3, 2023
6e4bc6d
Add support for setting Net-SNMP AgentX socket path
troglobit Mar 3, 2023
4cb119b
Ignore link down conditions in pnal_eth_send() on Linux
troglobit Sep 2, 2023
09e6177
Include port number in log message when failing to send message
troglobit Sep 2, 2023
694f214
pf_pdport_get_filename(): drop hard coded limit on number of ports
troglobit Sep 2, 2023
11a1ef2
Use relative URL to cmake-tools submodule
troglobit Sep 2, 2023
fd5b514
cmake/tools: bump to latest ael branch for verbose find_package()
troglobit Sep 2, 2023
a438022
Follow-up to cf6d3ae: silence pnal_get_ipmask()
troglobit Sep 3, 2023
e3dae48
Enable SNMP syslog, like in OSAL use -DUSE_SYSLOG
troglobit Sep 3, 2023
2104085
Drop PNAL API to set AgentX socket, use pnal_cfg instead
troglobit Sep 18, 2023
e6bad64
pnal: fake ethtool data on virtio_net drivers
troglobit Sep 19, 2023
1ff8e94
Log port filename when saving NVM settings
troglobit Oct 23, 2023
b732a5a
Log when resetting all port settings (developer debug)
troglobit Oct 23, 2023
b37074e
Add support for AdjustLinkState in PDPortAdjust
troglobit Oct 23, 2023
166f71d
Add support for AdjustMAUType in PDPortAdjust
troglobit Oct 24, 2023
982bb2a
Add support for HW offloaded blinking for Signal command
troglobit Nov 18, 2023
28ed12e
Skip warning in pf_cmina_dcp_set_commit() if LED flash timer runs
troglobit Nov 18, 2023
a69b35e
expanded mau-type support list with 2.5G, 5G and 10G (copper and fiber)
axkar Jan 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable SNMP syslog, like in OSAL use -DUSE_SYSLOG
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Sep 3, 2023
commit e3dae482baf15060055ccc4fc3f908250122d31b
5 changes: 5 additions & 0 deletions cmake/Linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ if (PNET_OPTION_SNMP)
find_package(NetSNMPAgent REQUIRED)
endif()

option (USE_SYSLOG
"Use syslog instead of logging to stdout"
OFF)

target_include_directories(profinet
PRIVATE
src/ports/linux
Expand Down Expand Up @@ -51,6 +55,7 @@ target_compile_options(profinet
-Wno-unused-parameter
-ffunction-sections
-fdata-sections
$<$<BOOL:${USE_SYSLOG}>:-DUSE_SYSLOG>
INTERFACE
$<$<CONFIG:Coverage>:--coverage>
)
Expand Down
4 changes: 4 additions & 0 deletions src/ports/linux/pnal_snmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ static void pnal_snmp_thread (void * arg)
{
struct pnet * pnet = arg;

#ifndef USE_SYSLOG
snmp_disable_log();
#else
snmp_enable_syslog();
#endif

/* make us an agentx client. */
netsnmp_enable_subagent();
Expand Down