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
Richard Cochran 2015-08-15 18:47:21 +02:00
parent bbd8d62bec
commit 0bb690c16c
4 changed files with 0 additions and 10 deletions

View File

@ -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;
}

View File

@ -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
View File

@ -115,7 +115,4 @@ struct portDS {
#define FRI_ASAP (-128)
struct port_defaults {
};
#endif

2
port.c
View File

@ -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;