Skip to content

Configuration options for STM_EMAC buffer counts #9307

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

Merged
merged 1 commit into from
Feb 19, 2019

Conversation

mtomczykmobica
Copy link

@mtomczykmobica mtomczykmobica commented Jan 9, 2019

Description

Configuration options for STM_EMAC buffer counts.

Add configurable options for STM_EMAC buffer. For all STM_EMAC board targets added mbed_lib.jeson with configurable: eth-rxbufnb and eth-txbufnb used in stm32f1xx_hal_conf.h.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@SeppoTakalo

@ciarmcom ciarmcom requested review from SeppoTakalo and a team January 9, 2019 14:00
@ciarmcom
Copy link
Member

ciarmcom commented Jan 9, 2019

@mtomczykmobica, thank you for your changes.
@SeppoTakalo @ARMmbed/mbed-os-ipcore @ARMmbed/mbed-os-maintainers please review.

Copy link
Collaborator

@jeromecoutant jeromecoutant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would propose to use the same lib name for all.

"name": "stm32-emac",

Thx

@jeromecoutant
Copy link
Collaborator

What is "ONME-3949" ?
Thx

@mtomczykmobica
Copy link
Author

What is "ONME-3949" ?
Thx

Internal Jira ticket number.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 9, 2019

Is it that important to have it in the title ? Fine to be referenced in the commit msg or description here, isn't that sufficient ?

@mtomczykmobica mtomczykmobica changed the title ONME-3949 Configuration options for STM_EMAC buffer counts Configuration options for STM_EMAC buffer counts Jan 9, 2019
@jeromecoutant
Copy link
Collaborator

jeromecoutant commented Jan 9, 2019

Or use the github issue number behind this internal reference....

@mtomczykmobica
Copy link
Author

Is it that important to have it in the title ? Fine to be referenced in the commit msg or description here, isn't that sufficient ?

ok, changed.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 15, 2019

@ARMmbed/team-st-mcd Please review

@jeromecoutant
Copy link
Collaborator

@ARMmbed/team-st-mcd Please review

I have already reviewed it and propose to use the same lib name for all.

"name": "stm32-emac",

Thx

@cmonr
Copy link
Contributor

cmonr commented Feb 12, 2019

@mtomczykmobica Any updates?

@mtomczykmobica
Copy link
Author

@jeromecoutant I prefer to leave different names for different targets.

@SeppoTakalo
Copy link
Contributor

After a another thought on this,
Can we instead move the mbed_lib.json up for couple of levels so that all stm32-emac drivers share one .lib file?
Then all variables can have same name and be overridden by target.

So basically this whole change would be
features/netsocket/emac-drivers/TARGET_STM_EMAC/mbed_lib.json:

{
    "name": "stm32-emac",
    "config": {
        "eth-rxbufnb": 4,
        "eth-txbufnb": 4
    },
    "target_overrides": {
        "NUCLEO_F207ZG": {
            "eth-rxbufnb": 1,
            "eth-txbufnb": 4
        }
    }
}

And within the header files, just use the generic name:

#define ETH_RXBUFNB                       MBED_CONF_STM32_EMAC_ETH_RXBUFNB

No need for if-def as the mbed_lib.json always provides values for those.

@mtomczykmobica
Copy link
Author

@SeppoTakalo , @jeromecoutant requested changes added.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 12, 2019

Waiting for @ARMmbed/team-st-mcd review

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 18, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Feb 18, 2019

Test run: FAILED

Summary: 6 of 8 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_mbed2-build-GCC_ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-ARM
  • jenkins-ci/mbed-os-ci_mbed2-build-IAR
  • jenkins-ci/mbed-os-ci_build-IAR
  • jenkins-ci/mbed-os-ci_build-ARM
  • jenkins-ci/mbed-os-ci_build-GCC_ARM

@mtomczykmobica
Copy link
Author

Fixes for builds error.

@0xc0170
Copy link
Contributor

0xc0170 commented Feb 19, 2019

CI was restarted

@mbed-ci
Copy link

mbed-ci commented Feb 19, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 2
Build artifacts

@0xc0170 0xc0170 merged commit 723236f into ARMmbed:master Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants