lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <68564c40-396b-9081-8534-67fe96a6fb3f@grandegger.com>
Date:   Wed, 14 Mar 2018 10:17:40 +0100
From:   Wolfgang Grandegger <wg@...ndegger.com>
To:     Jakob Unterwurzacher <jakob.unterwurzacher@...obroma-systems.com>
Cc:     Martin Elshuber <martin.elshuber@...obroma-systems.com>,
        Philipp Tomsich <philipp.tomsich@...obroma-systems.com>,
        Marc Kleine-Budde <mkl@...gutronix.de>,
        linux-can@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 1/1] can: ucan: add driver for Theobroma Systems UCAN
 devices



Am 14.03.2018 um 10:14 schrieb Jakob Unterwurzacher:
> On 14.03.18 10:11, Wolfgang Grandegger wrote:
>>> +    /* handle error frames */
>>> +    canid = le32_to_cpu(m->msg.can_msg.id);
>>> +    if (canid & CAN_ERR_FLAG) {
>>> +        ucan_handle_error_frame(up, m, canid);
>>> +        /* drop frame if berr-reporting is off */
>>> +        if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
>>> +            return;
>>> +    }
>>
>> You still do not generate error messages for state changes, IIUC.
> 
> The hardware generates error frames on state changes - is that what you 
> mean?
> 
> In our testing, the state shows up (and updates) correctly in
> 
>      ip -details -statistics link show can0

Counting the state changes is one thing but you should also generate 
error messages for them.

Wolfgang.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ