config: remove the 'port_defaults' structure.
This definition is now empty and can serve no purpose any more. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
bbd8d62bec
commit
0bb690c16c
3
config.c
3
config.c
|
@ -748,10 +748,7 @@ void config_init_interface(struct interface *iface, struct config *cfg)
|
|||
{
|
||||
iface->dm = cfg->dm;
|
||||
iface->transport = cfg->transport;
|
||||
memcpy(&iface->pod, &cfg->pod, sizeof(cfg->pod));
|
||||
|
||||
sk_get_ts_info(iface->name, &iface->ts_info);
|
||||
|
||||
iface->delay_filter = cfg->dds.delay_filter;
|
||||
}
|
||||
|
||||
|
|
2
config.h
2
config.h
|
@ -37,7 +37,6 @@ struct interface {
|
|||
char name[MAX_IFNAME_SIZE + 1];
|
||||
enum delay_mechanism dm;
|
||||
enum transport_type transport;
|
||||
struct port_defaults pod;
|
||||
struct sk_ts_info ts_info;
|
||||
enum tsproc_mode tsproc_mode;
|
||||
enum filter_type delay_filter;
|
||||
|
@ -64,7 +63,6 @@ struct config {
|
|||
enum delay_mechanism dm;
|
||||
|
||||
struct default_ds dds;
|
||||
struct port_defaults pod;
|
||||
enum servo_type clock_servo;
|
||||
|
||||
unsigned char *ptp_dst_mac;
|
||||
|
|
3
ds.h
3
ds.h
|
@ -115,7 +115,4 @@ struct portDS {
|
|||
|
||||
#define FRI_ASAP (-128)
|
||||
|
||||
struct port_defaults {
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
2
port.c
2
port.c
|
@ -95,7 +95,6 @@ struct port {
|
|||
unsigned int multiple_seq_pdr_count;
|
||||
unsigned int multiple_pdr_detected;
|
||||
/* portDS */
|
||||
struct port_defaults pod;
|
||||
struct PortIdentity portIdentity;
|
||||
enum port_state state; /*portState*/
|
||||
Integer64 asymmetry;
|
||||
|
@ -2533,7 +2532,6 @@ struct port *port_open(int phc_index,
|
|||
}
|
||||
}
|
||||
|
||||
p->pod = interface->pod;
|
||||
p->name = interface->name;
|
||||
p->asymmetry = config_get_int(cfg, p->name, "delayAsymmetry");
|
||||
p->asymmetry <<= 16;
|
||||
|
|
Loading…
Reference in New Issue