Answer all management requests with 'not supported'
Our management interface is not yet terribly useful, but at least we are honest about it. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
21c2fe30c7
commit
353b0a2743
5
clock.c
5
clock.c
|
@ -349,6 +349,7 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
|
||||||
int i, pdulen;
|
int i, pdulen;
|
||||||
struct port *fwd;
|
struct port *fwd;
|
||||||
struct management_tlv *mgt;
|
struct management_tlv *mgt;
|
||||||
|
struct PortIdentity pid;
|
||||||
struct ClockIdentity *tcid, wildcard = {
|
struct ClockIdentity *tcid, wildcard = {
|
||||||
{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
|
{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}
|
||||||
};
|
};
|
||||||
|
@ -408,6 +409,10 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
|
||||||
case ALTERNATE_TIME_OFFSET_PROPERTIES:
|
case ALTERNATE_TIME_OFFSET_PROPERTIES:
|
||||||
case TRANSPARENT_CLOCK_DEFAULT_DATA_SET:
|
case TRANSPARENT_CLOCK_DEFAULT_DATA_SET:
|
||||||
case PRIMARY_DOMAIN:
|
case PRIMARY_DOMAIN:
|
||||||
|
pid.clockIdentity = clock_identity(c);
|
||||||
|
pid.portNumber = 0;
|
||||||
|
if (port_managment_error(pid, p, msg, NOT_SUPPORTED))
|
||||||
|
pr_err("failed to send management error status");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
for (i = 0; i < c->nports; i++) {
|
for (i = 0; i < c->nports; i++) {
|
||||||
|
|
3
port.c
3
port.c
|
@ -1383,6 +1383,9 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
|
||||||
case TRANSPARENT_CLOCK_PORT_DATA_SET:
|
case TRANSPARENT_CLOCK_PORT_DATA_SET:
|
||||||
case DELAY_MECHANISM:
|
case DELAY_MECHANISM:
|
||||||
case LOG_MIN_PDELAY_REQ_INTERVAL:
|
case LOG_MIN_PDELAY_REQ_INTERVAL:
|
||||||
|
if (port_managment_error(p->portIdentity, ingress, msg,
|
||||||
|
NOT_SUPPORTED))
|
||||||
|
pr_err("port %hu: management error failed", portnum(p));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue